aboutsummaryrefslogtreecommitdiff
path: root/src/library.js
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-04-23 18:26:32 -0700
committerAlon Zakai <alonzakai@gmail.com>2013-04-23 18:26:32 -0700
commit5b300b8e00e089ad9c5eba04738632b39f9002a0 (patch)
tree2d9c9f7f27bb576e2facc1e0ce214f5be5a02ac5 /src/library.js
parent7bba036d79ee219f46402cd914504adf5a199230 (diff)
properly coerce setjmp helpers
Diffstat (limited to 'src/library.js')
-rw-r--r--src/library.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/library.js b/src/library.js
index 91270c38..daba0611 100644
--- a/src/library.js
+++ b/src/library.js
@@ -6272,7 +6272,7 @@ LibraryManager.library = {
setjmp__inline: function(env) {
// Save the label
#if ASM_JS
- return '_saveSetjmp(' + env + ', label, setjmpTable)';
+ return '_saveSetjmp(' + env + ', label, setjmpTable)|0';
#else
return '(tempInt = setjmpId++, mySetjmpIds[tempInt] = 1, setjmpLabels[tempInt] = label,' + makeSetValue(env, '0', 'tempInt', 'i32', undefined, undefined, undefined, undefined, ',') + ', 0)';
#endif