From d4c5d6397892813003822f28890a77be73b4ed47 Mon Sep 17 00:00:00 2001 From: David Brown Date: Tue, 13 Dec 2016 18:43:20 +0000 Subject: [PATCH] Update bootstrap C sources. --- bootstrap/unix-44/Out.c | 2 +- bootstrap/unix-48/Out.c | 2 +- bootstrap/unix-88/Out.c | 2 +- bootstrap/windows-48/Out.c | 2 +- bootstrap/windows-88/Out.c | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/bootstrap/unix-44/Out.c b/bootstrap/unix-44/Out.c index dc9ab60c..090b2c81 100644 --- a/bootstrap/unix-44/Out.c +++ b/bootstrap/unix-44/Out.c @@ -354,7 +354,7 @@ void Out_DumpHeap (void) Out_Hex(c->reserved, 1); Out_Ln(); baddr = (ADDRESS)&c->firstblock; - while (baddr < c->end) { + while (c->end - baddr > 0) { Out_String((CHAR*)" Block at: ", 15); Out_Hex(baddr, 1); Out_Ln(); diff --git a/bootstrap/unix-48/Out.c b/bootstrap/unix-48/Out.c index dc9ab60c..090b2c81 100644 --- a/bootstrap/unix-48/Out.c +++ b/bootstrap/unix-48/Out.c @@ -354,7 +354,7 @@ void Out_DumpHeap (void) Out_Hex(c->reserved, 1); Out_Ln(); baddr = (ADDRESS)&c->firstblock; - while (baddr < c->end) { + while (c->end - baddr > 0) { Out_String((CHAR*)" Block at: ", 15); Out_Hex(baddr, 1); Out_Ln(); diff --git a/bootstrap/unix-88/Out.c b/bootstrap/unix-88/Out.c index 5b315327..d0223799 100644 --- a/bootstrap/unix-88/Out.c +++ b/bootstrap/unix-88/Out.c @@ -354,7 +354,7 @@ void Out_DumpHeap (void) Out_Hex(c->reserved, 1); Out_Ln(); baddr = (ADDRESS)&c->firstblock; - while (baddr < c->end) { + while (c->end - baddr > 0) { Out_String((CHAR*)" Block at: ", 15); Out_Hex(baddr, 1); Out_Ln(); diff --git a/bootstrap/windows-48/Out.c b/bootstrap/windows-48/Out.c index f215ffaf..ef5d74e5 100644 --- a/bootstrap/windows-48/Out.c +++ b/bootstrap/windows-48/Out.c @@ -354,7 +354,7 @@ void Out_DumpHeap (void) Out_Hex(c->reserved, 1); Out_Ln(); baddr = (ADDRESS)&c->firstblock; - while (baddr < c->end) { + while (c->end - baddr > 0) { Out_String((CHAR*)" Block at: ", 15); Out_Hex(baddr, 1); Out_Ln(); diff --git a/bootstrap/windows-88/Out.c b/bootstrap/windows-88/Out.c index e8d8713a..bbb5de28 100644 --- a/bootstrap/windows-88/Out.c +++ b/bootstrap/windows-88/Out.c @@ -354,7 +354,7 @@ void Out_DumpHeap (void) Out_Hex(c->reserved, 1); Out_Ln(); baddr = (ADDRESS)&c->firstblock; - while (baddr < c->end) { + while (c->end - baddr > 0) { Out_String((CHAR*)" Block at: ", 15); Out_Hex(baddr, 1); Out_Ln();