From 91a0e52c03d8340f3aaf4c48a9f2c2d3a6fff368 Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Wed, 23 Oct 2013 13:25:35 +0200 Subject: [PATCH] src: IsInt64() should return bool, not int --- src/node_file.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/node_file.cc b/src/node_file.cc index 589ecdf7c95..54923b148c2 100644 --- a/src/node_file.cc +++ b/src/node_file.cc @@ -75,7 +75,7 @@ static Persistent 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(static_cast(x)); }