From 1f2ebeb44f3b0ddf93d7955378b829f2b7b6c2c7 Mon Sep 17 00:00:00 2001 From: Kartik Agaram Date: Wed, 16 Sep 2020 09:19:46 -0700 Subject: 6786 --- apps/browse/main.mu | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/apps/browse/main.mu b/apps/browse/main.mu index 0e9c0a59..dca84559 100644 --- a/apps/browse/main.mu +++ b/apps/browse/main.mu @@ -1,9 +1,9 @@ fn main args-on-stack: (addr array addr array byte) -> exit-status/ebx: int { var args/eax: (addr array addr array byte) <- copy args-on-stack - var tmp/ecx: int <- length args + var len/ecx: int <- length args $main-body: { # if (len(args) <= 1) print usage and exit - compare tmp, 1 + compare len, 1 { break-if-> print-string-to-real-screen "usage: browse [filename]\n" @@ -12,9 +12,9 @@ fn main args-on-stack: (addr array addr array byte) -> exit-status/ebx: int { break $main-body } # if (args[1] == "test") run-tests() - var tmp2/ecx: (addr addr array byte) <- index args, 1 - var tmp3/eax: boolean <- string-equal? *tmp2, "test" - compare tmp3, 0 + var tmp/ecx: (addr addr array byte) <- index args, 1 + var tmp2/eax: boolean <- string-equal? *tmp, "test" + compare tmp2, 0 { break-if-= run-tests -- cgit 1.4.1-2-gfad0