We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f9969da commit 247cc3bCopy full SHA for 247cc3b
src/util/macros.h
@@ -30,7 +30,7 @@ inline char* C_STRING(v8::Local<v8::String> string) {
30
31
// Given a double, returns whether the number is a valid 32-bit signed integer.
32
inline bool IS_32BIT_INT(double num) {
33
- return floor(num) == num && num < 2147483648L && num >= -2147483647L - 1;
+ return floor(num) == num && num < 2147483648.0 && num >= -2147483648.0;
34
}
35
36
// Creates a stack-allocated std:string of the concatenation of 2 well-formed
@@ -230,4 +230,4 @@ inline bool IS_32BIT_INT(double num) {
230
v8::NewStringType::kInternalized \
231
).ToLocalChecked()
232
233
-#endif
+#endif
0 commit comments