diff options
author | murgatroid99 <mlumish@google.com> | 2016-02-05 11:30:00 -0800 |
---|---|---|
committer | murgatroid99 <mlumish@google.com> | 2016-02-05 11:30:00 -0800 |
commit | 309830f6b8c09347db305acf3b05fca333030989 (patch) | |
tree | f2eb8c7cc20f3320cee8221f2ebd0190c05f8671 /src/node/ext | |
parent | b59b142799fe28482162bc192d6205fcb749c6c4 (diff) |
Replace 'long' with 'int64_t' in public core headers
Diffstat (limited to 'src/node/ext')
-rw-r--r-- | src/node/ext/timeval.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/node/ext/timeval.cc b/src/node/ext/timeval.cc index 64015e8412..9284db62ef 100644 --- a/src/node/ext/timeval.cc +++ b/src/node/ext/timeval.cc @@ -32,6 +32,7 @@ */ #include <limits> +#include <cstdint> #include "grpc/grpc.h" #include "grpc/support/time.h" @@ -46,7 +47,7 @@ gpr_timespec MillisecondsToTimespec(double millis) { } else if (millis == -std::numeric_limits<double>::infinity()) { return gpr_inf_past(GPR_CLOCK_REALTIME); } else { - return gpr_time_from_micros(static_cast<long>(millis * 1000), + return gpr_time_from_micros(static_cast<int64_t>(millis * 1000), GPR_CLOCK_REALTIME); } } |