Skip to content

Commit

Permalink
Use DIGIT-CHAR-P instead of POSITION.
Browse files Browse the repository at this point in the history
  • Loading branch information
phmarek authored and glv2 committed Feb 20, 2024
1 parent cd67e7b commit a0220ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/util.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -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)))))
Expand Down

0 comments on commit a0220ba

Please sign in to comment.