diff options
Diffstat (limited to 'src/util.lisp')
-rw-r--r-- | src/util.lisp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util.lisp b/src/util.lisp index 09d3f84..e453006 100644 --- a/src/util.lisp +++ b/src/util.lisp @@ -43,7 +43,7 @@ hexadecimal digits into a byte array." (key (make-array length :element-type '(unsigned-byte 8)))) (declare (type (simple-array (unsigned-byte 8) (*)) key)) (flet ((char-to-digit (char) - (or (position char "0123456789abcdef" :test #'char-equal) + (or (digit-char-p char 16) (error 'ironclad-error :format-control "~A is not a hex digit" :format-arguments (list char))))) |