X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Fcode%2Ffop.lisp;h=89bafa3185010c48c1b8a16b34310bede4fecc05;hb=35697e2c02e7b29f7953ae318d50305561927a16;hp=33146bf30321ca9677658f948df3d9e6be7cb908;hpb=6198ab492260b440a551e29b274bdd4ac5534dbb;p=sbcl.git diff --git a/src/code/fop.lisp b/src/code/fop.lisp index 33146bf..89bafa3 100644 --- a/src/code/fop.lisp +++ b/src/code/fop.lisp @@ -89,11 +89,11 @@ #+sb-xc-host (bug "READ-STRING-AS-WORDS called") (dotimes (i length) (setf (aref string i) - (sb!xc:code-char (logior - (read-byte stream) - (ash (read-byte stream) 8) - (ash (read-byte stream) 16) - (ash (read-byte stream) 24))))) + (let ((code 0)) + ;; FIXME: is this the same as READ-WORD-ARG? + (dotimes (k sb!vm:n-word-bytes (sb!xc:code-char code)) + (setf code (logior code (ash (read-byte stream) + (* k sb!vm:n-byte-bits)))))))) (values)) ;;;; miscellaneous fops