diff options
Diffstat (limited to 'bf.lang')
-rw-r--r-- | bf.lang | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -85,17 +85,16 @@ func int main() { char[] source := new char[4088]; int sourcelen := 0; - int done := 0; - while (done != 1) { + while (1) { int c := getc(); // putc(char(c)); if (c < 0) { - done = 1; + break; } else { source[sourcelen] = char(c); sourcelen = sourcelen + 1; if (sourcelen >= bufsize - 1) { - done = 1; + break; } } } |