Skip to content

Commit 7dc4add

Browse files
authored
Merge pull request #10 from bengotow/bengotow/ia32-support
Fix macros.h to support ia32 on Windows (#9)
2 parents 2606eef + 247cc3b commit 7dc4add

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/util/macros.h

Lines changed: 2 additions & 2 deletions
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 < 2147483648.0 && num >= -2147483648.0;
3434
}
3535

3636
// Creates a stack-allocated std:string of the concatenation of 2 well-formed
@@ -230,4 +230,4 @@ inline bool IS_32BIT_INT(double num) {
230230
v8::NewStringType::kInternalized \
231231
).ToLocalChecked()
232232

233-
#endif
233+
#endif

0 commit comments

Comments
 (0)