Fix type test in bytevector->hexadecimal.
authorMatt Birkholz <matt@birchwood-abbey.net>
Fri, 24 Feb 2017 20:23:34 +0000 (13:23 -0700)
committerMatt Birkholz <matt@birchwood-abbey.net>
Fri, 24 Feb 2017 20:23:34 +0000 (13:23 -0700)
src/runtime/bytevector.scm

index fd0e55ebce199bf2d75ce7795c9d90084ed41b25..9367a801535333e8415560cf04d1970455521cee 100644 (file)
@@ -379,7 +379,7 @@ USA.
 (define (bytevector->hexadecimal bytes)
   (define-integrable (hex-char k)
     (string-ref "0123456789ABCDEF" (fix:and k #x0F)))
-  (guarantee string? bytes 'bytevector->hexadecimal)
+  (guarantee bytevector? bytes 'bytevector->hexadecimal)
   (let ((n (bytevector-length bytes))
        (builder (string-builder)))
     (do ((i 0 (fix:+ i 1)))