X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=src%2Fstrings.lisp;h=89c41b2ec03a8ca4d240d449a134c33c92c2a2ef;hb=3e1ab6ebfcf56e76edffaff284aca937e8152408;hp=0f01e97ba1245103f0c8f8b5affaaa3f0ef019dc;hpb=8085d5edf101e4f8a00834fc45783ad37d694e42;p=uffi.git diff --git a/src/strings.lisp b/src/strings.lisp index 0f01e97..89c41b2 100644 --- a/src/strings.lisp +++ b/src/strings.lisp @@ -157,10 +157,11 @@ that LW/CMU automatically converts strings from c-calls." nil (if (eq ,locale :none) (fast-native-to-string ,obj ,length) - (excl:native-to-string - ,obj - ,@(when length (list :length length)) - :truncate (not ,null-terminated-p)))) + (values + (excl:native-to-string + ,obj + ,@(when length (list :length length)) + :truncate (not ,null-terminated-p))))) #+lispworks `(if (fli:null-pointer-p ,obj) nil