From 4d20a666850b732cf1562487fb5f46ab9654105f Mon Sep 17 00:00:00 2001 From: Noah Eisen Date: Fri, 9 Feb 2018 09:34:04 -0800 Subject: Run clang fmt --- test/core/avl/avl_test.cc | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'test/core/avl') diff --git a/test/core/avl/avl_test.cc b/test/core/avl/avl_test.cc index 563de81a0d..ecebe833b3 100644 --- a/test/core/avl/avl_test.cc +++ b/test/core/avl/avl_test.cc @@ -36,7 +36,9 @@ static int* box(int x) { static long int_compare(void* int1, void* int2, void* unused) { return (*static_cast(int1)) - (*static_cast(int2)); } -static void* int_copy(void* p, void* unused) { return box(*static_cast(p)); } +static void* int_copy(void* p, void* unused) { + return box(*static_cast(p)); +} static void destroy(void* p, void* unused) { gpr_free(p); } @@ -3614,7 +3616,7 @@ static void test_stress(int amount_of_stress) { memset(added, 0, sizeof(added)); for (i = 1; deletions < amount_of_stress; i++) { - int idx = rand() % static_castGPR_ARRAY_SIZE(added); + int idx = rand() % static_cast GPR_ARRAY_SIZE(added); GPR_ASSERT(i); if (rand() < RAND_MAX / 2) { added[idx] = i; @@ -3627,7 +3629,7 @@ static void test_stress(int amount_of_stress) { printf("avl = remove_int(avl, %d); /* d=%d */\n", idx, deletions); avl = remove_int(avl, idx); } - for (j = 0; j < static_castGPR_ARRAY_SIZE(added); j++) { + for (j = 0; j < static_cast GPR_ARRAY_SIZE(added); j++) { if (added[j] != 0) { check_get(avl, j, added[j]); } else { -- cgit v1.2.3