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/iomgr/alarm_heap.c | |
parent | 0ebfaa04b0cd38ccf273746195ca8c8ac7f7d4d6 (diff) |
First round of fixing up implicit 64->32 bit conversions
Diffstat (limited to 'src/core/iomgr/alarm_heap.c')
-rw-r--r-- | src/core/iomgr/alarm_heap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/iomgr/alarm_heap.c b/src/core/iomgr/alarm_heap.c index 7bafdffcef..769142e425 100644 --- a/src/core/iomgr/alarm_heap.c +++ b/src/core/iomgr/alarm_heap.c @@ -45,7 +45,7 @@ its argument. */ static void adjust_upwards(grpc_alarm **first, gpr_uint32 i, grpc_alarm *t) { while (i > 0) { - gpr_uint32 parent = (i - 1u) / 2u; + gpr_uint32 parent = (gpr_uint32)(((int)i - 1) / 2); if (gpr_time_cmp(first[parent]->deadline, t->deadline) >= 0) break; first[i] = first[parent]; first[i]->heap_index = i; @@ -94,7 +94,7 @@ static void maybe_shrink(grpc_alarm_heap *heap) { static void note_changed_priority(grpc_alarm_heap *heap, grpc_alarm *alarm) { gpr_uint32 i = alarm->heap_index; - gpr_uint32 parent = (i - 1u) / 2u; + gpr_uint32 parent = (gpr_uint32)(((int)i - 1) / 2); if (gpr_time_cmp(heap->alarms[parent]->deadline, alarm->deadline) < 0) { adjust_upwards(heap->alarms, i, alarm); } else { |