summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Marek <philipp@marek.priv.at>2024-02-18 17:51:14 +0100
committerGuillaume Le Vaillant <glv@posteo.net>2024-02-20 10:26:27 +0100
commita0220ba3f0b4fc93ac99bba5680cbace1b95cf70 (patch)
tree23606b1134a9cc623c0c1c6eb23a54638f17ad28
parentcd67e7b606acd2d14ed854f7f10b6955a68ceec4 (diff)
Use DIGIT-CHAR-P instead of POSITION.
-rw-r--r--src/util.lisp2
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)))))