about summary refs log tree commit diff stats
path: root/prototypes/browse/29
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2020-06-21 16:56:57 -0700
committerKartik Agaram <vc@akkartik.com>2020-06-21 17:08:03 -0700
commit6bfb565819288770eea9b0cfe1f7a44abd8a45d1 (patch)
tree39f562f657ffb4d4f3c4bbda7df4e802db4d7cad /prototypes/browse/29
parent6883b8d1c71a939b1378422f4c0f66982698d725 (diff)
downloadmu-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/29')
-rw-r--r--prototypes/browse/29/main.mu16
1 files changed, 10 insertions, 6 deletions
diff --git a/prototypes/browse/29/main.mu b/prototypes/browse/29/main.mu
index ea9cdf02..5bbb0586 100644
--- a/prototypes/browse/29/main.mu
+++ b/prototypes/browse/29/main.mu
@@ -145,9 +145,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
@@ -161,9 +163,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