aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/ext/filters/max_age
diff options
context:
space:
mode:
authorGravatar Noah Eisen <ncteisen@google.com>2018-02-09 10:23:30 -0800
committerGravatar ncteisen <ncteisen@gmail.com>2018-02-09 17:49:00 -0800
commite1bec40dfb8ff7562fc6a6dafb6d0369294e852f (patch)
treeca54df0049fbf0e519d4ec49699646d953e6c9fa /src/core/ext/filters/max_age
parent4d20a666850b732cf1562487fb5f46ab9654105f (diff)
Manually fix build issue
Diffstat (limited to 'src/core/ext/filters/max_age')
-rw-r--r--src/core/ext/filters/max_age/max_age_filter.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/ext/filters/max_age/max_age_filter.cc b/src/core/ext/filters/max_age/max_age_filter.cc
index 415a90959d..abb9d69036 100644
--- a/src/core/ext/filters/max_age/max_age_filter.cc
+++ b/src/core/ext/filters/max_age/max_age_filter.cc
@@ -285,8 +285,8 @@ static void max_idle_timer_cb(void* arg, grpc_error* error) {
GRPC_CHANNEL_STACK_REF(chand->channel_stack,
"max_age max_idle_timer");
grpc_timer_init(&chand->max_idle_timer,
- static_cast<grpc_millis> gpr_atm_no_barrier_load(
- &chand->last_enter_idle_time_millis) +
+ static_cast<grpc_millis>(gpr_atm_no_barrier_load(
+ &chand->last_enter_idle_time_millis)) +
chand->max_connection_idle,
&chand->max_idle_timer_cb);
/* idle_state may have already been set to
@@ -384,7 +384,7 @@ add_random_max_connection_age_jitter_and_convert_to_grpc_millis(int value) {
double result = multiplier * value;
/* INT_MAX - 0.5 converts the value to float, so that result will not be
cast to int implicitly before the comparison. */
- return result > (static_cast<double> GRPC_MILLIS_INF_FUTURE) - 0.5
+ return result > (static_cast<double>(GRPC_MILLIS_INF_FUTURE)) - 0.5
? GRPC_MILLIS_INF_FUTURE
: static_cast<grpc_millis>(result);
}