aboutsummaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorChristine Dodrill <me@christine.website>2019-06-27 00:34:46 +0000
committerChristine Dodrill <me@christine.website>2019-06-27 00:34:46 +0000
commit14c3f5a07063f6b62999685f170396d92b620bac (patch)
tree535414d52e027bf146f37d52c5945f64431f705f /cmd
parente3f9dc08284b7f098cef269af373967f687a50d4 (diff)
downloadx-14c3f5a07063f6b62999685f170396d92b620bac.tar.xz
x-14c3f5a07063f6b62999685f170396d92b620bac.zip
cmd/h: off by twov1.1.5
Diffstat (limited to 'cmd')
-rw-r--r--cmd/h/.Dockerfile.swpbin0 -> 12288 bytes
-rw-r--r--cmd/h/main.go4
2 files changed, 3 insertions, 1 deletions
diff --git a/cmd/h/.Dockerfile.swp b/cmd/h/.Dockerfile.swp
new file mode 100644
index 0000000..e7d12cf
--- /dev/null
+++ b/cmd/h/.Dockerfile.swp
Binary files differ
diff --git a/cmd/h/main.go b/cmd/h/main.go
index 96f601b..63229ac 100644
--- a/cmd/h/main.go
+++ b/cmd/h/main.go
@@ -10,6 +10,8 @@ import (
"within.website/x/internal"
)
+var _ = func() error { log.SetFlags(log.LstdFlags | log.Llongfile); return nil }()
+
var (
program = flag.String("p", "", "h program to compile/run")
outFname = flag.String("o", "", "if specified, write the webassembly binary created by -p here")
@@ -113,7 +115,7 @@ const wasmTemplate = `(module
(local i32 i32 i32)
(local.set 0 (i32.const 10))
(local.set 1 (i32.const 104))
- (local.set 2 (i32.const 37))
+ (local.set 2 (i32.const 39))
{{ range . -}}
{{ if eq . 32 -}}
(call $h (get_local 0))