diff options
author | Kartik Agaram <vc@akkartik.com> | 2020-05-24 20:36:31 -0700 |
---|---|---|
committer | Kartik Agaram <vc@akkartik.com> | 2020-05-24 20:36:31 -0700 |
commit | 4d14c3fefd8362512e8e75d5051f7a7b709b483f (patch) | |
tree | e885a00f14fd15eb3116398d645bcfab6a0c5510 /apps | |
parent | 27b1e19ebec31eca1d29c4b8f18408b02c172578 (diff) | |
download | mu-4d14c3fefd8362512e8e75d5051f7a7b709b483f.tar.gz |
6393 - start running .mu apps in CI
Diffstat (limited to 'apps')
-rw-r--r-- | apps/factorial.mu | 6 | ||||
-rwxr-xr-x | apps/mu | bin | 254216 -> 254249 bytes |
2 files changed, 3 insertions, 3 deletions
diff --git a/apps/factorial.mu b/apps/factorial.mu index e498cae1..5a748f0d 100644 --- a/apps/factorial.mu +++ b/apps/factorial.mu @@ -31,8 +31,8 @@ fn test-factorial { check-ints-equal result 0x78 "F - test-factorial" } -fn main args: (addr array string) -> exit-status/ebx: int { - var a/eax: (addr array string) <- copy args +fn main args: (addr array (addr array byte)) -> exit-status/ebx: int { + var a/eax: (addr array (addr array byte)) <- copy args var tmp/ecx: int <- length a $main-body: { # if (len(args) <= 1) factorial(5) @@ -44,7 +44,7 @@ fn main args: (addr array string) -> exit-status/ebx: int { break $main-body } # if (args[1] == "test") run-tests() - var tmp2/ecx: (addr string) <- index a, 1 + var tmp2/ecx: (addr addr array byte) <- index a, 1 var tmp3/eax: boolean <- string-equal? *tmp2, "test" compare tmp3, 0 { diff --git a/apps/mu b/apps/mu index 33034270..9cb68c00 100755 --- a/apps/mu +++ b/apps/mu Binary files differ |