aboutsummaryrefslogtreecommitdiff
path: root/src/jsifier.js
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2012-01-08 17:08:28 -0800
committerAlon Zakai <alonzakai@gmail.com>2012-01-08 17:08:28 -0800
commitc64c1afb59280a80c11238ee24006c92b598ca8c (patch)
tree44eced2d3c702a73e8ab95d0251380f62c93db21 /src/jsifier.js
parentaf942f1c89bb5d35e3641da46c39c6f27b8ffce4 (diff)
support alignment in memset and memcpy in ta2
Diffstat (limited to 'src/jsifier.js')
-rw-r--r--src/jsifier.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/jsifier.js b/src/jsifier.js
index 8a75e49f..f8fa0e0f 100644
--- a/src/jsifier.js
+++ b/src/jsifier.js
@@ -520,7 +520,7 @@ function JSify(data, functionsOnly, givenFunctions) {
var type = removePointing(param.type);
var typeInfo = Types.types[type];
func.JS += ' var tempParam = ' + param.ident + '; ' + param.ident + ' = ' + RuntimeGenerator.stackAlloc(typeInfo.flatSize) + ';' +
- makeCopyValues(param.ident, 'tempParam', typeInfo.flatSize, 'null') + ';\n';
+ makeCopyValues(param.ident, 'tempParam', typeInfo.flatSize, 'null', null, 1) + ';\n';
}
});