Fix a couple of minor issues in the Node library

pull/4540/head
murgatroid99 9 years ago
parent b9f0253a26
commit 72dcfc73ab
  1. 2
      src/node/ext/call_credentials.cc
  2. 2
      src/node/ext/timeval.cc

@ -32,6 +32,8 @@
*/
#include <node.h>
#include <nan.h>
#include <uv.h>
#include "grpc/grpc.h"
#include "grpc/grpc_security.h"

@ -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);
}
}

Loading…
Cancel
Save