projects
/
mit-scheme.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
63bde0d
)
Fix type test in bytevector->hexadecimal.
author
Matt Birkholz
<matt@birchwood-abbey.net>
Fri, 24 Feb 2017 20:23:34 +0000
(13:23 -0700)
committer
Matt Birkholz
<matt@birchwood-abbey.net>
Fri, 24 Feb 2017 20:23:34 +0000
(13:23 -0700)
src/runtime/bytevector.scm
patch
|
blob
|
history
diff --git
a/src/runtime/bytevector.scm
b/src/runtime/bytevector.scm
index fd0e55ebce199bf2d75ce7795c9d90084ed41b25..9367a801535333e8415560cf04d1970455521cee 100644
(file)
--- a/
src/runtime/bytevector.scm
+++ b/
src/runtime/bytevector.scm
@@
-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)))