Skip to content
Snippets Groups Projects
Commit 1ce471a6 authored by Konstantinos Sofokleous's avatar Konstantinos Sofokleous
Browse files

fix indentation and be more explicit re cast to gpr_atm

parent 147cc70d
No related branches found
No related tags found
No related merge requests found
...@@ -129,7 +129,7 @@ int gpr_stack_lockfree_push(gpr_stack_lockfree *stack, int entry) { ...@@ -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], old_val = gpr_atm_no_barrier_fetch_add(&stack->pushed[pushed_index],
((gpr_atm)1 << pushed_bit)); ((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 #endif
...@@ -167,7 +167,7 @@ int gpr_stack_lockfree_pop(gpr_stack_lockfree *stack) { ...@@ -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], old_val = gpr_atm_no_barrier_fetch_add(&stack->pushed[pushed_index],
-((gpr_atm)1 << pushed_bit)); -((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 #endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment