From 6bfb565819288770eea9b0cfe1f7a44abd8a45d1 Mon Sep 17 00:00:00 2001 From: Kartik Agaram Date: Sun, 21 Jun 2020 16:56:57 -0700 Subject: 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. --- prototypes/browse/16-screen-state-broken.mu | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'prototypes/browse/16-screen-state-broken.mu') diff --git a/prototypes/browse/16-screen-state-broken.mu b/prototypes/browse/16-screen-state-broken.mu index 7ab40060..6fe7f3eb 100644 --- a/prototypes/browse/16-screen-state-broken.mu +++ b/prototypes/browse/16-screen-state-broken.mu @@ -28,7 +28,7 @@ fn main args: (addr array (addr array byte)) -> exit-status/ebx: int { var ncols/ecx: int <- copy 0 nrows, ncols <- screen-size var screen-position-state-storage: screen-position-state - var screen-position-state: (addr screen-position-state) = address screen-position-state-storage + var screen-position-state: (addr screen-position-state) init-screen-position-state screen-position-state, nrows, ncols { render file, screen-position-state -- cgit 1.4.1-2-gfad0