summaryrefslogtreecommitdiff
path: root/src/s2wasm.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/s2wasm.h')
-rw-r--r--src/s2wasm.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/s2wasm.h b/src/s2wasm.h
index f800e193b..31b28f1e2 100644
--- a/src/s2wasm.h
+++ b/src/s2wasm.h
@@ -688,9 +688,9 @@ class S2WasmBuilder {
skipComma();
auto curr = allocator.alloc<Select>();
auto inputs = getInputs(3);
- curr->ifTrue = inputs[1];
- curr->ifFalse = inputs[2];
- curr->condition = inputs[0];
+ curr->ifTrue = inputs[0];
+ curr->ifFalse = inputs[1];
+ curr->condition = inputs[2];
assert(curr->condition->type == i32);
curr->type = type;
setOutput(curr, assign);