Browse Source

src: IsInt64() should return bool, not int

v0.10.22-release
Ben Noordhuis 11 years ago
parent
commit
91a0e52c03
  1. 2
      src/node_file.cc

2
src/node_file.cc

@ -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));
}

Loading…
Cancel
Save