aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/node/ext
diff options
context:
space:
mode:
authorGravatar murgatroid99 <mlumish@google.com>2015-12-18 15:26:50 -0800
committerGravatar murgatroid99 <mlumish@google.com>2015-12-18 15:26:50 -0800
commit72dcfc73ab440f8492f6adcad5d154a5292e281b (patch)
tree9dbc9dac96a84962318f7fcbdb2efd43816ec218 /src/node/ext
parentb9f0253a26631eab27f93893f94bf72cda94f0e6 (diff)
Fix a couple of minor issues in the Node library
Diffstat (limited to 'src/node/ext')
-rw-r--r--src/node/ext/call_credentials.cc2
-rw-r--r--src/node/ext/timeval.cc2
2 files changed, 3 insertions, 1 deletions
diff --git a/src/node/ext/call_credentials.cc b/src/node/ext/call_credentials.cc
index 8cbfb1ebea..91acb86254 100644
--- a/src/node/ext/call_credentials.cc
+++ b/src/node/ext/call_credentials.cc
@@ -32,6 +32,8 @@
*/
#include <node.h>
+#include <nan.h>
+#include <uv.h>
#include "grpc/grpc.h"
#include "grpc/grpc_security.h"
diff --git a/src/node/ext/timeval.cc b/src/node/ext/timeval.cc
index bf68513c48..64015e8412 100644
--- a/src/node/ext/timeval.cc
+++ b/src/node/ext/timeval.cc
@@ -46,7 +46,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<int64_t>(millis * 1000),
+ return gpr_time_from_micros(static_cast<long>(millis * 1000),
GPR_CLOCK_REALTIME);
}
}