aboutsummaryrefslogtreecommitdiff
path: root/emscripten.py
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-04-28 19:54:15 -0700
committerAlon Zakai <alonzakai@gmail.com>2013-04-29 13:02:33 -0700
commitd48ab255de54bb387e55ed0268dbbec1f43daafc (patch)
tree6f4b36b06a8bd9b20eb32ad1fc27325be6bfd070 /emscripten.py
parentbeb1218ce0f6d1d539016ee82bc17b347569306a (diff)
fix stackAlloc in asm for le32
Diffstat (limited to 'emscripten.py')
-rwxr-xr-xemscripten.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/emscripten.py b/emscripten.py
index 6c758942..f4bfed82 100755
--- a/emscripten.py
+++ b/emscripten.py
@@ -529,7 +529,7 @@ var asm = (function(global, env, buffer) {
var ret = 0;
ret = STACKTOP;
STACKTOP = (STACKTOP + size)|0;
- STACKTOP = ((STACKTOP + 3)>>2)<<2;
+''' + ('STACKTOP = ((STACKTOP + 3)>>2)<<2;' if settings['TARGET_X86'] else 'STACKTOP = ((STACKTOP + 7)>>3)<<3;') + '''
return ret|0;
}
function stackSave() {