X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=src%2Fstrings.lisp;h=0f01e97ba1245103f0c8f8b5affaaa3f0ef019dc;hb=dc12f6625ed6c85ad380525d01c0726100bf7a3d;hp=dc42fa3f58fa26a462a2f6c0afba2fcc11ca73da;hpb=ac201b76eda15e3da7f31369e9eaf6d0a349163a;p=uffi.git diff --git a/src/strings.lisp b/src/strings.lisp index dc42fa3..0f01e97 100644 --- a/src/strings.lisp +++ b/src/strings.lisp @@ -188,7 +188,9 @@ that LW/CMU automatically converts strings from c-calls." #+mcl `(if (ccl:%null-ptr-p ,obj) nil - (ccl:%get-cstring ,obj 0 ,@(if length (list length) nil))) + #+(and mcl (not openmcl)) (ccl:%get-cstring ,obj 0 ,@(if length (list length) nil)) + #+openmcl (let ((str (ccl:%get-cstring ,obj))) + ,(if length '(subseq str 0 length) 'str))) )