diff options
author | 2017-10-02 15:57:01 -0700 | |
---|---|---|
committer | 2017-10-02 15:57:01 -0700 | |
commit | a16be228f8c0e160d8bff2c4267517b3a4045fab (patch) | |
tree | 8cdd3addfa09627904f38bf4ebe2ddbe102b9932 /src/core | |
parent | 5bc68e9750d6046d348a3ef8ffa4909a435e3e3c (diff) |
Fix casts
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/lib/backoff/backoff.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/lib/backoff/backoff.c b/src/core/lib/backoff/backoff.c index b34c4a852b..fe0a751817 100644 --- a/src/core/lib/backoff/backoff.c +++ b/src/core/lib/backoff/backoff.c @@ -49,7 +49,7 @@ grpc_millis grpc_backoff_step(grpc_exec_ctx *exec_ctx, grpc_backoff *backoff) { const double new_timeout_millis = backoff->multiplier * (double)backoff->current_timeout_millis; backoff->current_timeout_millis = - GPR_MIN((int64_t)new_timeout_millis, backoff->max_timeout_millis); + GPR_MIN((grpc_millis)new_timeout_millis, backoff->max_timeout_millis); const double jitter_range_width = backoff->jitter * new_timeout_millis; const double jitter = @@ -57,7 +57,7 @@ grpc_millis grpc_backoff_step(grpc_exec_ctx *exec_ctx, grpc_backoff *backoff) { jitter_range_width; backoff->current_timeout_millis = - (int64_t)((double)(backoff->current_timeout_millis) + jitter); + (grpc_millis)((double)(backoff->current_timeout_millis) + jitter); const grpc_millis current_deadline = grpc_exec_ctx_now(exec_ctx) + backoff->current_timeout_millis; |