diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-01-25 18:43:32 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-01-25 18:43:32 -0800 |
commit | 09f0ed8fa19e4fcf8a600d2e99c25ddde9c7d45f (patch) | |
tree | 02fd7a9acb08e58267b17c75d540e1fbecf11968 /src/parseTools.js | |
parent | b6e947f6ae03565c1b21ba84d4e741685948a61e (diff) |
coerce in calls to copyTemp*
Diffstat (limited to 'src/parseTools.js')
-rw-r--r-- | src/parseTools.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/parseTools.js b/src/parseTools.js index 581a1f1e..bace60db 100644 --- a/src/parseTools.js +++ b/src/parseTools.js @@ -1117,9 +1117,9 @@ function makeGetValue(ptr, pos, type, noNeedFirst, unsigned, ignore, align, noSa } } else { if (type == 'float') { - ret += 'copyTempFloat(' + getFastValue(ptr, '+', pos) + '),' + makeGetTempDouble(0, 'float'); + ret += 'copyTempFloat(' + asmCoercion(getFastValue(ptr, '+', pos), 'i32') + '),' + makeGetTempDouble(0, 'float'); } else { - ret += 'copyTempDouble(' + getFastValue(ptr, '+', pos) + '),' + makeGetTempDouble(0, 'double'); + ret += 'copyTempDouble(' + asmCoercion(getFastValue(ptr, '+', pos), 'i32') + '),' + makeGetTempDouble(0, 'double'); } } ret += ')'; |