summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/example/relooper-fuzz.c15
1 files changed, 9 insertions, 6 deletions
diff --git a/test/example/relooper-fuzz.c b/test/example/relooper-fuzz.c
index ba9bcb3ed..cfd10a9b3 100644
--- a/test/example/relooper-fuzz.c
+++ b/test/example/relooper-fuzz.c
@@ -229,12 +229,15 @@ int main() {
BinaryenExpressionRef full[numDecisions + 1]; // write out all the decisions, then the body of the function
- for (int i = 0; i < numDecisions; i++) {
- full[i] = BinaryenStore(module,
- 4, 0, 0,
- BinaryenConst(module, BinaryenLiteralInt32(8 + 4 * i)),
- BinaryenConst(module, BinaryenLiteralInt32(decisions[i]))
- );
+ {
+ int i;
+ for (i = 0; i < numDecisions; i++) {
+ full[i] = BinaryenStore(module,
+ 4, 0, 0,
+ BinaryenConst(module, BinaryenLiteralInt32(8 + 4 * i)),
+ BinaryenConst(module, BinaryenLiteralInt32(decisions[i]))
+ );
+ }
}
full[numDecisions] = body;
BinaryenExpressionRef all = BinaryenBlock(module, NULL, full, numDecisions + 1);