Skip to content

Commit 247cc3b

Browse files
authored
Update macros.h
1 parent f9969da commit 247cc3b

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 < 2147483648L && num >= -2147483647L - 1;
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)