Fix a couple of minor issues in the Node library

This commit is contained in:
murgatroid99 2015-12-18 15:26:50 -08:00
parent 032fe5bf37
commit 6fbfcace18
2 changed files with 3 additions and 1 deletions

View File

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

View File

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