about summary refs log tree commit diff stats
path: root/apps
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2020-05-24 20:36:31 -0700
committerKartik Agaram <vc@akkartik.com>2020-05-24 20:36:31 -0700
commit4d14c3fefd8362512e8e75d5051f7a7b709b483f (patch)
treee885a00f14fd15eb3116398d645bcfab6a0c5510 /apps
parent27b1e19ebec31eca1d29c4b8f18408b02c172578 (diff)
downloadmu-4d14c3fefd8362512e8e75d5051f7a7b709b483f.tar.gz
6393 - start running .mu apps in CI
Diffstat (limited to 'apps')
-rw-r--r--apps/factorial.mu6
-rwxr-xr-xapps/mubin254216 -> 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