diff options
author | Ben Noordhuis <info@bnoordhuis.nl> | 2013-10-23 13:25:35 +0200 |
---|---|---|
committer | Ben Noordhuis <info@bnoordhuis.nl> | 2013-10-23 13:26:25 +0200 |
commit | 91a0e52c03d8340f3aaf4c48a9f2c2d3a6fff368 (patch) | |
tree | 43095976abb0694ba3d8507e0a20c01d76ad479b /src/node_file.cc | |
parent | 97813ae58d19687f3c61f6355b4307c88908058a (diff) | |
download | node-new-91a0e52c03d8340f3aaf4c48a9f2c2d3a6fff368.tar.gz |
src: IsInt64() should return bool, not int
Diffstat (limited to 'src/node_file.cc')
-rw-r--r-- | src/node_file.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/node_file.cc b/src/node_file.cc index 589ecdf7c9..54923b148c 100644 --- a/src/node_file.cc +++ b/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)); } |