summaryrefslogtreecommitdiff
path: root/src/literal.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/literal.h')
-rw-r--r--src/literal.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/literal.h b/src/literal.h
index c0e43eb88..eedccabcc 100644
--- a/src/literal.h
+++ b/src/literal.h
@@ -158,7 +158,7 @@ public:
assert(type == Type::i32);
return i32;
}
- int32_t geti31(bool signed_) const {
+ int32_t geti31(bool signed_ = true) const {
assert(type == Type::i31ref);
return signed_ ? (i32 << 1) >> 1 : i32;
}