diff options
author | Kartik Agaram <vc@akkartik.com> | 2020-06-21 16:56:57 -0700 |
---|---|---|
committer | Kartik Agaram <vc@akkartik.com> | 2020-06-21 17:08:03 -0700 |
commit | 6bfb565819288770eea9b0cfe1f7a44abd8a45d1 (patch) | |
tree | 39f562f657ffb4d4f3c4bbda7df4e802db4d7cad /prototypes/browse/27 | |
parent | 6883b8d1c71a939b1378422f4c0f66982698d725 (diff) | |
download | mu-6bfb565819288770eea9b0cfe1f7a44abd8a45d1.tar.gz |
6570 - error on use of a clobbered var
All tests now passing, and factorial.mu and all other apps now working. The new checks caught one problem in a few prototypes.
Diffstat (limited to 'prototypes/browse/27')
-rw-r--r-- | prototypes/browse/27/main.mu | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/prototypes/browse/27/main.mu b/prototypes/browse/27/main.mu index 13764211..ea471c8b 100644 --- a/prototypes/browse/27/main.mu +++ b/prototypes/browse/27/main.mu @@ -133,9 +133,11 @@ $render-header-line:body: { var c/eax: byte <- copy 0 { # if done-drawing?(state) return - var done?/eax: boolean <- done-drawing? state - compare done?, 0 # false - break-if-!= $render-header-line:body + { + var done?/eax: boolean <- done-drawing? state + compare done?, 0 # false + break-if-!= $render-header-line:body + } # c <- next-char fs # if (c != '#') break @@ -149,9 +151,11 @@ $render-header-line:body: { start-heading header-level { # if done-drawing?(state) break - var done?/eax: boolean <- done-drawing? state - compare done?, 0 # false - break-if-!= + { + var done?/eax: boolean <- done-drawing? state + compare done?, 0 # false + break-if-!= + } # c <- next-char fs # if (c == EOF) break |