summaryrefslogtreecommitdiff
path: root/src/s2wasm.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/s2wasm.h')
-rw-r--r--src/s2wasm.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/s2wasm.h b/src/s2wasm.h
index 4f5a05fce..81531ab3c 100644
--- a/src/s2wasm.h
+++ b/src/s2wasm.h
@@ -886,8 +886,9 @@ private:
zero = false;
} else if (match(".zero")) {
int32_t size = getInt();
- if (size <= 0)
+ if (size <= 0) {
abort_on(".zero with zero or negative size");
+ }
for (size_t i = 0, e = size; i < e; i++) {
raw->push_back(0);
}