diff options
author | Craig Tiller <ctiller@google.com> | 2015-09-10 14:43:18 -0700 |
---|---|---|
committer | Craig Tiller <ctiller@google.com> | 2015-09-10 14:43:18 -0700 |
commit | f96dfc3cf89f0e10a5356ca1bcfd4697410a75c4 (patch) | |
tree | 81040d4efce2bb330a213d3ea54ae6e64c3c4870 /src/core/transport/chttp2/timeout_encoding.c | |
parent | 0ebfaa04b0cd38ccf273746195ca8c8ac7f7d4d6 (diff) |
First round of fixing up implicit 64->32 bit conversions
Diffstat (limited to 'src/core/transport/chttp2/timeout_encoding.c')
-rw-r--r-- | src/core/transport/chttp2/timeout_encoding.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/transport/chttp2/timeout_encoding.c b/src/core/transport/chttp2/timeout_encoding.c index 40fcdc26dc..8a9b290ecb 100644 --- a/src/core/transport/chttp2/timeout_encoding.c +++ b/src/core/transport/chttp2/timeout_encoding.c @@ -123,7 +123,7 @@ void grpc_chttp2_encode_timeout(gpr_timespec timeout, char *buffer) { enc_nanos(buffer, timeout.tv_nsec); } else if (timeout.tv_sec < 1000 && timeout.tv_nsec != 0) { enc_micros(buffer, - timeout.tv_sec * 1000000 + + (int)(timeout.tv_sec * 1000000) + (timeout.tv_nsec / 1000 + (timeout.tv_nsec % 1000 != 0))); } else { enc_seconds(buffer, timeout.tv_sec + (timeout.tv_nsec != 0)); |