diff options
author | Konstantinos Sofokleous <ksophocleous@gmail.com> | 2015-12-16 16:50:09 +0100 |
---|---|---|
committer | Konstantinos Sofokleous <ksophocleous@gmail.com> | 2015-12-16 16:50:09 +0100 |
commit | 1ce471a670b475d6ba0b73c16271c604752a64af (patch) | |
tree | 5225b34a805ef8d7e23e2627a027d5c2b295ecec /src/core | |
parent | 147cc70dd649dd888385d0c3ac5fc8367965b4b9 (diff) |
fix indentation and be more explicit re cast to gpr_atm
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/support/stack_lockfree.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/support/stack_lockfree.c b/src/core/support/stack_lockfree.c index 3cc1be3650..fc934d404c 100644 --- a/src/core/support/stack_lockfree.c +++ b/src/core/support/stack_lockfree.c @@ -129,7 +129,7 @@ int gpr_stack_lockfree_push(gpr_stack_lockfree *stack, int entry) { old_val = gpr_atm_no_barrier_fetch_add(&stack->pushed[pushed_index], ((gpr_atm)1 << pushed_bit)); - GPR_ASSERT((old_val & ((gpr_atm)1 << pushed_bit)) == 0); + GPR_ASSERT((old_val & (((gpr_atm)1) << pushed_bit)) == 0); } #endif @@ -167,7 +167,7 @@ int gpr_stack_lockfree_pop(gpr_stack_lockfree *stack) { old_val = gpr_atm_no_barrier_fetch_add(&stack->pushed[pushed_index], -((gpr_atm)1 << pushed_bit)); - GPR_ASSERT((old_val & ((gpr_atm)1 << pushed_bit)) != 0); + GPR_ASSERT((old_val & (((gpr_atm)1) << pushed_bit)) != 0); } #endif |