From b6853477a48ebb5bcda2de32dbb282cfee87e124 Mon Sep 17 00:00:00 2001 From: Dan Ballard Date: Fri, 3 Apr 2020 10:28:17 -0700 Subject: [PATCH] fix for byte-to-2hex re: https://github.com/dballard/cl-pack/issues/5 --- cl-pack.lisp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cl-pack.lisp b/cl-pack.lisp index fcf7f8f..a23ceef 100644 --- a/cl-pack.lisp +++ b/cl-pack.lisp @@ -290,7 +290,7 @@ (defun byte-to-2hex (byte) "Turn a byte into a string of 2 hex characters" - (format nil "~2,0X" byte)) + (format nil "~2,'0X" byte)) (defun byte-to-2hex-rev (byte) (reverse (byte-to-2hex byte)))