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/17-file-state-broken/main.mu | |
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/17-file-state-broken/main.mu')
-rw-r--r-- | prototypes/browse/17-file-state-broken/main.mu | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/prototypes/browse/17-file-state-broken/main.mu b/prototypes/browse/17-file-state-broken/main.mu index e95aff73..fc22d9ea 100644 --- a/prototypes/browse/17-file-state-broken/main.mu +++ b/prototypes/browse/17-file-state-broken/main.mu @@ -12,7 +12,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 { var done?/eax: boolean <- done-reading? fs |