src: IsInt64() should return bool, not int

pull/24998/head
Ben Noordhuis 2013-10-23 13:25:35 +02:00
parent 97813ae58d
commit 91a0e52c03
1 changed files with 1 additions and 1 deletions

View File

@ -75,7 +75,7 @@ static Persistent<String> oncomplete_sym;
#define GET_OFFSET(a) ((a)->IsNumber() ? (a)->IntegerValue() : -1)
#define GET_TRUNCATE_LENGTH(a) ((a)->IntegerValue())
static inline int IsInt64(double x) {
static inline bool IsInt64(double x) {
return x == static_cast<double>(static_cast<int64_t>(x));
}