summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJF Bastien <jfb@chromium.org>2015-12-22 13:59:54 -0800
committerJF Bastien <jfb@chromium.org>2015-12-22 13:59:54 -0800
commit397ddb4bbced30b96d6f05dddaea6a395269cf34 (patch)
tree9a12a954e534fa4439581ef132acfdca91328389 /src
parent5f7c296dbaba32bc4dad65cbee84ee95a01919bf (diff)
downloadbinaryen-397ddb4bbced30b96d6f05dddaea6a395269cf34.tar.gz
binaryen-397ddb4bbced30b96d6f05dddaea6a395269cf34.tar.bz2
binaryen-397ddb4bbced30b96d6f05dddaea6a395269cf34.zip
Add curlies.
Diffstat (limited to 'src')
-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);
}