diff options
author | Philipp Marek <philipp@marek.priv.at> | 2024-02-18 17:51:14 +0100 |
---|---|---|
committer | Guillaume Le Vaillant <glv@posteo.net> | 2024-02-20 10:26:27 +0100 |
commit | a0220ba3f0b4fc93ac99bba5680cbace1b95cf70 (patch) | |
tree | 23606b1134a9cc623c0c1c6eb23a54638f17ad28 /src/util.lisp | |
parent | cd67e7b606acd2d14ed854f7f10b6955a68ceec4 (diff) |
Use DIGIT-CHAR-P instead of POSITION.
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))))) |