aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/lib/iomgr
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/lib/iomgr
parent4d20a666850b732cf1562487fb5f46ab9654105f (diff)
Manually fix build issue
Diffstat (limited to 'src/core/lib/iomgr')
-rw-r--r--src/core/lib/iomgr/executor.cc4
-rw-r--r--src/core/lib/iomgr/resource_quota.cc4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/core/lib/iomgr/executor.cc b/src/core/lib/iomgr/executor.cc
index 16782dacc5..7ab987c19e 100644
--- a/src/core/lib/iomgr/executor.cc
+++ b/src/core/lib/iomgr/executor.cc
@@ -190,7 +190,7 @@ static void executor_push(grpc_closure* closure, grpc_error* error,
do {
retry_push = false;
size_t cur_thread_count =
- static_cast<size_t> gpr_atm_no_barrier_load(&g_cur_threads);
+ static_cast<size_t>(gpr_atm_no_barrier_load(&g_cur_threads));
if (cur_thread_count == 0) {
if (executor_trace.enabled()) {
#ifndef NDEBUG
@@ -258,7 +258,7 @@ static void executor_push(grpc_closure* closure, grpc_error* error,
}
if (try_new_thread && gpr_spinlock_trylock(&g_adding_thread_lock)) {
cur_thread_count =
- static_cast<size_t> gpr_atm_no_barrier_load(&g_cur_threads);
+ static_cast<size_t>(gpr_atm_no_barrier_load(&g_cur_threads));
if (cur_thread_count < g_max_threads) {
gpr_atm_no_barrier_store(&g_cur_threads, cur_thread_count + 1);
diff --git a/src/core/lib/iomgr/resource_quota.cc b/src/core/lib/iomgr/resource_quota.cc
index da310694ef..c4763f3229 100644
--- a/src/core/lib/iomgr/resource_quota.cc
+++ b/src/core/lib/iomgr/resource_quota.cc
@@ -659,8 +659,8 @@ void grpc_resource_quota_resize(grpc_resource_quota* resource_quota,
}
size_t grpc_resource_quota_peek_size(grpc_resource_quota* resource_quota) {
- return static_cast<size_t> gpr_atm_no_barrier_load(
- &resource_quota->last_size);
+ return static_cast<size_t>(
+ gpr_atm_no_barrier_load(&resource_quota->last_size));
}
/*******************************************************************************