We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e30b32a commit 0779c55Copy full SHA for 0779c55
1 file changed
src/parseTools.js
@@ -1018,10 +1018,10 @@ function asmCoercion(value, type) {
1018
if (!ASM_JS) return value;
1019
if (type == 'void') {
1020
return value;
1021
- } else if (isIntImplemented(type)) {
1022
- return '((' + value + ')|0)';
1023
- } else {
+ } else if (type in Runtime.FLOAT_TYPES) {
1024
return '(+(' + value + '))';
+ } else {
+ return '((' + value + ')|0)';
1025
}
1026
1027
0 commit comments