(zilch lang ninja): fix off-by-one on end of file

Change-Id: I6a6a69645dd013d565efccfd634ed0744e5a688c
This commit is contained in:
puck 2025-05-11 22:21:07 +00:00
parent e08558456a
commit a6757baf0e

View file

@ -226,7 +226,7 @@
((= (bytevector-u8-ref bv j) (bytevector-u8-ref in-bv (+ index j)))
(inner-loop (+ j 1)))
(else #f)))
(if (>= (+ index bv-len) (bytevector-length in-bv))
(if (> (+ index bv-len) (bytevector-length in-bv))
#f
(inner-loop 0)))