Skip to content

Commit f9969da

Browse files
committed
fix support for ia32 on Windows
1 parent 2606eef commit f9969da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/util/macros.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ inline char* C_STRING(v8::Local<v8::String> string) {
3030

3131
// Given a double, returns whether the number is a valid 32-bit signed integer.
3232
inline bool IS_32BIT_INT(double num) {
33-
return floor(num) == num && num < 2147483648 && num >= -2147483648;
33+
return floor(num) == num && num < 2147483648L && num >= -2147483647L - 1;
3434
}
3535

3636
// Creates a stack-allocated std:string of the concatenation of 2 well-formed

0 commit comments

Comments
 (0)