From 5ab1d275668a271056d90b2e7701d55d0d4e2dfa Mon Sep 17 00:00:00 2001 From: Philipp Marek Date: Sun, 18 Feb 2024 17:51:14 +0100 Subject: [PATCH] Use DIGIT-CHAR-P instead of POSITION. --- src/util.lisp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util.lisp b/src/util.lisp index 09d3f84..7ca199d 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) ; (position char "0123456789abcdef" :test #'char-equal) (error 'ironclad-error :format-control "~A is not a hex digit" :format-arguments (list char)))))