From 66daf3cc1f479300cf3e58278a1167bd862d855a Mon Sep 17 00:00:00 2001 From: Kartik Agaram Date: Sat, 22 Aug 2020 10:10:54 -0700 Subject: 6720 --- prototypes/browse/17-file-state-broken/main.mu | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'prototypes/browse/17-file-state-broken') diff --git a/prototypes/browse/17-file-state-broken/main.mu b/prototypes/browse/17-file-state-broken/main.mu index a273c0fe..a7d41529 100644 --- a/prototypes/browse/17-file-state-broken/main.mu +++ b/prototypes/browse/17-file-state-broken/main.mu @@ -1,4 +1,4 @@ -fn main args: (addr array (addr array byte)) -> exit-status/ebx: int { +fn main args: (addr array addr array byte) -> exit-status/ebx: int { # initialize fs from args[1] var filename/eax: (addr array byte) <- first-arg args var file-state-storage: file-state @@ -99,8 +99,8 @@ fn render-header-line fs: (addr file-state), state: (addr screen-position-state) } } -fn first-arg args-on-stack: (addr array (addr array byte)) -> out/eax: (addr array byte) { - var args/eax: (addr array (addr array byte)) <- copy args-on-stack +fn first-arg args-on-stack: (addr array addr array byte) -> out/eax: (addr array byte) { + var args/eax: (addr array addr array byte) <- copy args-on-stack var result/eax: (addr addr array byte) <- index args, 1 out <- copy *result } -- cgit 1.4.1-2-gfad0