From 7f53337609dda8f22497fe35850b68a554434008 Mon Sep 17 00:00:00 2001 From: Tom Smeding Date: Sun, 15 Apr 2018 21:29:57 +0200 Subject: Fix bug in tape printer of bfinter2.c --- bfinter2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bfinter2.c b/bfinter2.c index 8801090..924d35f 100644 --- a/bfinter2.c +++ b/bfinter2.c @@ -184,7 +184,7 @@ static void p_run(const struct program p){ case IDEBUG: { int low=0,high=memsize-1; while(lowstartidx&&mem[high]==0)high++; + while(high>startidx&&mem[high]==0)high--; for(int i=low;i<=high;i++){ fprintf(stderr,"%3u ",(unsigned)mem[i]); } -- cgit v1.2.3