X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fcode%2Foctets.lisp;h=32344cc886708ef6c0f289ed476d3c91aff51aa9;hb=8eee0d3a30bf39d9f201acff28c92059fe6c3e4e;hp=014f2e2d91bcde65f70957aa071617109527e77d;hpb=8643c93d4db277f6e1cb880a42407ff29e19f618;p=sbcl.git diff --git a/src/code/octets.lisp b/src/code/octets.lisp index 014f2e2..32344cc 100644 --- a/src/code/octets.lisp +++ b/src/code/octets.lisp @@ -402,8 +402,9 @@ one-past-the-end" (macrolet ((ascii-bash () '(let ((array (make-array (+ null-padding (- send sstart)) :element-type '(unsigned-byte 8)))) - (loop for i from sstart below send - do (setf (aref array i) (char-code (char string i)))) + (loop for i from 0 + and j from sstart below send + do (setf (aref array i) (char-code (char string j)))) array))) (etypecase string ((simple-array character (*)) @@ -817,7 +818,8 @@ one-past-the-end" (declare (type (vector (unsigned-byte 8)) vector)) (with-array-data ((vector vector) (start start) - (end (%check-vector-sequence-bounds vector start end))) + (end end) + :check-fill-pointer t) (declare (type (simple-array (unsigned-byte 8) (*)) vector)) (funcall (symbol-function (first (external-formats-funs external-format))) vector start end))) @@ -827,7 +829,8 @@ one-past-the-end" (declare (type string string)) (with-array-data ((string string) (start start) - (end (%check-vector-sequence-bounds string start end))) + (end end) + :check-fill-pointer t) (declare (type simple-string string)) (funcall (symbol-function (second (external-formats-funs external-format))) string start end (if null-terminate 1 0))))