diff options
-rw-r--r-- | src/jsifier.js | 2 | ||||
-rw-r--r-- | src/parseTools.js | 5 |
2 files changed, 6 insertions, 1 deletions
diff --git a/src/jsifier.js b/src/jsifier.js index 070513e1..1116c0d1 100644 --- a/src/jsifier.js +++ b/src/jsifier.js @@ -593,7 +593,7 @@ function JSify(data, functionsOnly, givenFunctions) { if (ASM_JS) { // spell out argument types func.params.forEach(function(param) { - func.JS += INDENTATION + param.ident + '=' + asmCoercion(param.ident, param.type) + ';\n'; + func.JS += INDENTATION + param.ident + '=' + deParen(asmCoercion(param.ident, param.type)) + ';\n'; }); // spell out local variables diff --git a/src/parseTools.js b/src/parseTools.js index e88cafd6..d749fb0a 100644 --- a/src/parseTools.js +++ b/src/parseTools.js @@ -2553,3 +2553,8 @@ function parseAlign(text) { // parse ", align \d+" return parseInt(text.substr(8)); } +function deParen(text) { + if (text[0] === '(') return text.substr(1, text.length-2); + return text; +} + |