aboutsummaryrefslogtreecommitdiff
path: root/bf.lang
diff options
context:
space:
mode:
Diffstat (limited to 'bf.lang')
-rw-r--r--bf.lang7
1 files changed, 3 insertions, 4 deletions
diff --git a/bf.lang b/bf.lang
index 71a5d8a..e2f6788 100644
--- a/bf.lang
+++ b/bf.lang
@@ -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;
}
}
}