summaryrefslogtreecommitdiff
path: root/src/s2wasm.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/s2wasm.h')
-rw-r--r--src/s2wasm.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/s2wasm.h b/src/s2wasm.h
index 4e3ec23e5..b8ac6f139 100644
--- a/src/s2wasm.h
+++ b/src/s2wasm.h
@@ -905,8 +905,13 @@ private:
if (size <= 0) {
abort_on(".zero with zero or negative size");
}
+ unsigned char value = 0;
+ if (skipComma()) {
+ value = getInt();
+ if (value != 0) zero = false;
+ }
for (size_t i = 0, e = size; i < e; i++) {
- raw->push_back(0);
+ raw->push_back(value);
}
} else if (match(".int8")) {
size_t size = raw->size();