diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/wasm2js.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wasm2js.h b/src/wasm2js.h index 615e47268..43f4d520f 100644 --- a/src/wasm2js.h +++ b/src/wasm2js.h @@ -2860,7 +2860,7 @@ void Wasm2JSGlue::emitSpecialSupport() { if (timeoutHigh >= 0) { // Convert from nanoseconds to milliseconds // Taken from convertI32PairToI53 in emscripten's library_int53.js - timeout = ((timeoutLow / 1e6) >>> 0) + timeoutHigh * (4294967296 / 1e6); + timeout = ((timeoutLow >>> 0) / 1e6) + timeoutHigh * (4294967296 / 1e6); } var view = new Int32Array(bufferView.buffer); // TODO cache var result = Atomics.wait(view, ptr >> 2, expected, timeout); |