mirror of https://github.com/grpc/grpc-node.git
Replace 'long' with 'int64_t' in public core headers
This commit is contained in:
parent
735c99daeb
commit
0bff65cd0e
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue