]> asedeno.scripts.mit.edu Git - cl-protobufs.git/commitdiff
wire-format: BABEL:STRING-TO-OCTETS gives us a SIMPLE-ARRAY
authorAlejandro R Sedeño <asedeno@google.com>
Fri, 26 Apr 2013 15:49:27 +0000 (11:49 -0400)
committerAlejandro R Sedeño <asedeno@google.com>
Wed, 29 May 2013 22:02:07 +0000 (18:02 -0400)
wire-format.lisp

index 99fd18f933f5d2174aca2b5481fb0297db698eb5..449c1e6742233797fbfa4d16506bef6d04be1a72 100644 (file)
   (let* ((octets (babel:string-to-octets string :encoding :utf-8))
          (len (length octets))
          (idx (encode-uint32 len buffer index)))
-    (declare (type (array (unsigned-byte 8)) octets)
+    (declare (type (simple-array (unsigned-byte 8)) octets)
              (type fixnum len)
              (type (unsigned-byte 32) idx))
     (replace buffer octets :start1 idx)