summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/wasm2js.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/wasm2js.h b/src/wasm2js.h
index 08969b8ba..45721bd75 100644
--- a/src/wasm2js.h
+++ b/src/wasm2js.h
@@ -2135,8 +2135,9 @@ Ref Wasm2JSBuilder::processFunctionBody(Module* m,
ValueBuilder::appendToCall(
call,
ValueBuilder::makePtrShift(makePointer(curr->ptr, curr->offset), 2));
- ValueBuilder::appendToCall(call,
- visit(curr->notifyCount, EXPRESSION_RESULT));
+ ValueBuilder::appendToCall(
+ call,
+ makeSigning(visit(curr->notifyCount, EXPRESSION_RESULT), JS_UNSIGNED));
return call;
}