fixed a bug of do-loop

This commit is contained in:
Koichi Nakamura 2021-01-05 21:34:06 +09:00
parent 8356ff933a
commit f71413d42b

View file

@ -1723,9 +1723,15 @@ do-stack 16 cells + do-sp !
\ compile: ( -- dest mark )
: do
compile 2dup
compile >r \ save start
compile >r \ save limit
\ leave if start >= limit
compile >
compile 0branch
0 ,
here >do do-mark >do
here cell- >do leave-mark >do
; immediate
: leave ( -- orig mark )