aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/lib/iomgr
diff options
context:
space:
mode:
authorGravatar Craig Tiller <ctiller@google.com>2017-07-21 13:49:49 -0700
committerGravatar Craig Tiller <ctiller@google.com>2017-07-21 13:49:49 -0700
commita0d5185138ea956f2a405ce673ea1652015c5056 (patch)
tree7f3b89e832e2da5a9566282d4ac7fac62875a158 /src/core/lib/iomgr
parent1890883adc8f6ca6f74ef21398cb51524e43966c (diff)
ubsan fix
Diffstat (limited to 'src/core/lib/iomgr')
-rw-r--r--src/core/lib/iomgr/executor.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/lib/iomgr/executor.c b/src/core/lib/iomgr/executor.c
index 5ee2c6e99b..0d38b2334c 100644
--- a/src/core/lib/iomgr/executor.c
+++ b/src/core/lib/iomgr/executor.c
@@ -224,7 +224,7 @@ static void executor_push(grpc_exec_ctx *exec_ctx, grpc_closure *closure,
gpr_mu_lock(&ts->mu);
if (ts->queued_long_job) {
gpr_mu_unlock(&ts->mu);
- intptr_t idx = ts - g_thread_state;
+ size_t idx = (size_t)(ts - g_thread_state);
ts = &g_thread_state[(idx + 1) % cur_thread_count];
if (ts == orig_ts) {
retry_push = true;