Skip to content

Commit 0779c55

Browse files
committed
fix asmCoercion for aggregate types
1 parent e30b32a commit 0779c55

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/parseTools.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1018,10 +1018,10 @@ function asmCoercion(value, type) {
10181018
if (!ASM_JS) return value;
10191019
if (type == 'void') {
10201020
return value;
1021-
} else if (isIntImplemented(type)) {
1022-
return '((' + value + ')|0)';
1023-
} else {
1021+
} else if (type in Runtime.FLOAT_TYPES) {
10241022
return '(+(' + value + '))';
1023+
} else {
1024+
return '((' + value + ')|0)';
10251025
}
10261026
}
10271027

0 commit comments

Comments
 (0)