diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-05-02 15:36:38 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-05-02 15:36:38 -0700 |
commit | d415b4145dd771c937b7295c22d01716428cb3dc (patch) | |
tree | 267af40747b033eff687fc9e604e521a49fbc7d9 /src | |
parent | 6b5e7e290190ea604d9f3761d8f7e13781cea36a (diff) |
ensure floats in varargs
Diffstat (limited to 'src')
-rw-r--r-- | src/jsifier.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/jsifier.js b/src/jsifier.js index cdfc024e..24fded72 100644 --- a/src/jsifier.js +++ b/src/jsifier.js @@ -1404,6 +1404,7 @@ function JSify(data, functionsOnly, givenFunctions) { varargs.map(function(arg, i) { var type = varargsTypes[i]; if (type == 0) return null; + arg = asmEnsureFloat(arg, type); var ret; assert(offset % Runtime.STACK_ALIGN == 0); // varargs must be aligned if (!varargsByVals[i]) { |