diff options
author | 2015-12-22 13:49:30 -0800 | |
---|---|---|
committer | 2015-12-22 13:49:30 -0800 | |
commit | 7536af02cf218f8dcb1368bec6d86c65db95c9b4 (patch) | |
tree | cd560e1321aed28504aca5358dabbf49692a0956 /src/cpp/util | |
parent | 2d2963e5e919128929e8a62a17fbbc9f3fd684d9 (diff) |
Eliminate gpr_ int types - and insist on C99 variants instead
Diffstat (limited to 'src/cpp/util')
-rw-r--r-- | src/cpp/util/time.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/cpp/util/time.cc b/src/cpp/util/time.cc index 9c38b34879..2685e31ee6 100644 --- a/src/cpp/util/time.cc +++ b/src/cpp/util/time.cc @@ -57,8 +57,8 @@ void Timepoint2Timespec(const system_clock::time_point& from, return; } nanoseconds nsecs = duration_cast<nanoseconds>(deadline - secs); - to->tv_sec = (gpr_int64)secs.count(); - to->tv_nsec = (gpr_int32)nsecs.count(); + to->tv_sec = (int64_t)secs.count(); + to->tv_nsec = (int32_t)nsecs.count(); to->clock_type = GPR_CLOCK_REALTIME; } @@ -73,8 +73,8 @@ void TimepointHR2Timespec(const high_resolution_clock::time_point& from, return; } nanoseconds nsecs = duration_cast<nanoseconds>(deadline - secs); - to->tv_sec = (gpr_int64)secs.count(); - to->tv_nsec = (gpr_int32)nsecs.count(); + to->tv_sec = (int64_t)secs.count(); + to->tv_nsec = (int32_t)nsecs.count(); to->clock_type = GPR_CLOCK_REALTIME; } |