summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Dockerfile2
-rw-r--r--index.htm6
2 files changed, 4 insertions, 4 deletions
diff --git a/Dockerfile b/Dockerfile
index 57c5935..97577f1 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -5,7 +5,7 @@ RUN apk add clang lld
COPY examples /usr/examples
COPY reduced_system_layer.c /usr/reduced_system_layer.c
COPY graphics.c /usr/graphics.c
-RUN clang -D NDEBUG -O3 --target=wasm32 -nostdlib -fno-builtin -mbulk-memory -Wl,--no-entry,--allow-undefined -o /usr/index.wasm /usr/examples/ui.c
+RUN clang -D NDEBUG -O3 --target=wasm32 -nostdlib -fno-builtin -mbulk-memory -Wl,--no-entry,--allow-undefined -o /usr/index.wasm /usr/examples/julia_set.c
FROM nginx:alpine
EXPOSE 80
diff --git a/index.htm b/index.htm
index 4542dc7..437b932 100644
--- a/index.htm
+++ b/index.htm
@@ -82,11 +82,11 @@
let title_buffer;
if (title_address != 0) {
- let bytes = new Uint8Array(this.memory_buffer);
- let title_len = 0;
+ let bytes = new Uint8Array(this.memory_buffer);
+ let title_len = 0;
while (bytes[title_address + title_len] != 0)
++title_len;
- let title_buffer = new ArrayBuffer(title_len);
+ title_buffer = new ArrayBuffer(title_len);
new Uint8Array(title_buffer).set(bytes.subarray(title_address, title_address + title_len));
} else
title_buffer = undefined;