Cool! I might have a use for this. Thanks!
-- Scott
Function put-int32-to-array. The last line in that function should be
(setf (aref array (+ position 3)) (logand #xFF (ash int -24))))
i.e. (+ position 3)
the fixed version is on my web site at www.obrezan.com/lisp/mysql.lisp
Skimming it, it occurred to me that there might be another bug:
formatting the SHA1 hash incorrectly. Use ~8,'0X rather than ~X.
>> Skimming it, it occurred to me that there might be another bug:
>> formatting the SHA1 hash incorrectly. �Use ~8,'0X rather than ~X.
>
> Thanks!
(let ((digest '(1 2 3 4 5)))
(format nil "~{~8,'0X~}" digest))
--> "0000000100000002000000030000000400000005"
--
__Pascal Bourguignon__ http://www.informatimago.com/