diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-10-07 14:08:15 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-10-08 18:26:44 -0400 |
commit | 0e4520e0227f23316175ee9de9edb5c867859e8a (patch) | |
tree | ae65e5aab1fa34e5585dea0ebc0b94529d9afbc2 /src/jsifier.js | |
parent | b5f705842e51df9ae25be76feaf1495de8e4252c (diff) |
use ident in alloca intertype
Diffstat (limited to 'src/jsifier.js')
-rw-r--r-- | src/jsifier.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/jsifier.js b/src/jsifier.js index 0e5f8ef3..e7cc3683 100644 --- a/src/jsifier.js +++ b/src/jsifier.js @@ -1361,7 +1361,7 @@ function JSify(data, functionsOnly, givenFunctions) { if (item.allocatedSize === 0) return ''; // This will not actually be shown - it's nativized return asmCoercion(getFastValue('sp', '+', item.allocatedIndex.toString()), 'i32'); } else { - return RuntimeGenerator.stackAlloc(getFastValue(calcAllocatedSize(item.allocatedType), '*', item.allocatedNum)); + return RuntimeGenerator.stackAlloc(getFastValue(calcAllocatedSize(item.allocatedType), '*', item.ident)); } } function va_argHandler(item) { |