runtime/ffi.scm: Missed guarantee-string -> guarantee bytevector?.
authorMatt Birkholz <matt@birchwood-abbey.net>
Fri, 24 Feb 2017 23:17:13 +0000 (16:17 -0700)
committerMatt Birkholz <matt@birchwood-abbey.net>
Fri, 24 Feb 2017 23:17:13 +0000 (16:17 -0700)
src/runtime/ffi.scm

index d03c93cf722d5a67343d1297d3063a9f2991e31e..c3f51eae89ee8743c6d937312910184f859294eb 100644 (file)
@@ -329,7 +329,7 @@ USA.
 
 (define (c-poke-string! alien bytevector)
   ;; Like c-poke-string, but increments ALIEN past the terminating null byte.
-  (guarantee-string bytevector 'C-POKE-STRING!)
+  (guarantee bytevector? bytevector 'C-POKE-STRING!)
   ((ucode-primitive c-poke-string! 3) alien 0 bytevector))
 
 (define-integrable (c-poke-bytes alien offset count buffer start)