diff options
author | Alon Zakai <alonzakai@gmail.com> | 2012-12-07 15:51:06 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2012-12-07 15:51:06 -0800 |
commit | 8129e120edabbb0fcae7447b8dff08ad0fc3d6f0 (patch) | |
tree | 29b6901da0dfe908362329bb54f34f5f6c31c8da /emscripten.py | |
parent | 1f4842db0437edb73896e0d7a03558c5a2c692ba (diff) |
emit asm coercions on returns
Diffstat (limited to 'emscripten.py')
-rwxr-xr-x | emscripten.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/emscripten.py b/emscripten.py index ceb81e62..3222e12f 100755 --- a/emscripten.py +++ b/emscripten.py @@ -354,10 +354,10 @@ var asmPre = (function(env, buffer) { var ret = STACKTOP; STACKTOP = (STACKTOP + size)|0; STACKTOP = ((STACKTOP + 3)>>2)<<2; - return ret; + return ret|0; } function stackSave() { - return STACKTOP; + return STACKTOP|0; } function stackRestore(top) { top = top|0; |