Skip to content

Commit

Permalink
src: IsInt64() should return bool, not int
Browse files Browse the repository at this point in the history
  • Loading branch information
bnoordhuis committed Oct 23, 2013
1 parent 97813ae commit 91a0e52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/node_file.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}

Expand Down

0 comments on commit 91a0e52

Please sign in to comment.