X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=src%2Fstrings.lisp;h=0f01e97ba1245103f0c8f8b5affaaa3f0ef019dc;hb=8626fd8b0c42c7ecd107e3f4d1353b109ba8f9ad;hp=dc42fa3f58fa26a462a2f6c0afba2fcc11ca73da;hpb=52aa6156ffd6ff12b904f04d25ab3d4ee4126015;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))) )