Skip to content

Commit c5b8954

Browse files
committed
sb-md5: work on large arrays.
For some reason it was restricted to (unsigned-byte 29) indexes.
1 parent 80dfdf3 commit c5b8954

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

contrib/sb-md5/md5.lisp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -484,7 +484,7 @@ in `regs'. Returns a (simple-array (unsigned-byte 8) (16))."
484484
starting at `buffer-offset'."
485485
(declare (optimize (speed 3) (safety 0) (space 0) (debug 0)
486486
#+lw-int32 (float 0) #+lw-int32 (hcl:fixnum-safety 0))
487-
(type (unsigned-byte 29) from-offset)
487+
(type sb-int:index from-offset)
488488
(type (integer 0 63) count buffer-offset)
489489
(type (simple-array * (*)) from)
490490
(type (simple-array (unsigned-byte 8) (64)) buffer))
@@ -561,7 +561,7 @@ external-format conversion routines beforehand."
561561
((simple-array (unsigned-byte 8) (*))
562562
(locally
563563
(declare (type (simple-array (unsigned-byte 8) (*)) sequence))
564-
(loop for offset of-type (unsigned-byte 29) from start below end by 64
564+
(loop for offset of-type sb-int:index from start below end by 64
565565
until (< (- end offset) 64)
566566
do
567567
(fill-block-ub8 block sequence offset)
@@ -574,7 +574,7 @@ external-format conversion routines beforehand."
574574
(simple-string
575575
(locally
576576
(declare (type simple-string sequence))
577-
(loop for offset of-type (unsigned-byte 29) from start below end by 64
577+
(loop for offset of-type sb-int:index from start below end by 64
578578
until (< (- end offset) 64)
579579
do
580580
(fill-block-char block sequence offset)

0 commit comments

Comments
 (0)