diff options
author | Craig Tiller <craig.tiller@gmail.com> | 2015-02-19 21:41:20 -0800 |
---|---|---|
committer | Craig Tiller <craig.tiller@gmail.com> | 2015-02-19 21:41:20 -0800 |
commit | 54f9a65f1ee7bf05b17a5727ad3c0795c4b032e5 (patch) | |
tree | 02acd91b23e7134aecc8399e8725b5ed4f930f40 /test/core/statistics | |
parent | 99d6593db80585614390fae31d74b0804482da9a (diff) |
32 bit compilation fixes for core
Diffstat (limited to 'test/core/statistics')
-rw-r--r-- | test/core/statistics/hash_table_test.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/core/statistics/hash_table_test.c b/test/core/statistics/hash_table_test.c index 9b7a712c18..2752d6d89d 100644 --- a/test/core/statistics/hash_table_test.c +++ b/test/core/statistics/hash_table_test.c @@ -97,7 +97,7 @@ static void test_table_with_int_key(void) { for (i = 0; i < 20; ++i) { census_ht_key key; key.val = i; - census_ht_insert(ht, key, (void*)i); + census_ht_insert(ht, key, (void*)(gpr_intptr)i); GPR_ASSERT(census_ht_get_size(ht) == i + 1); } for (i = 0; i < 20; i++) { @@ -105,7 +105,7 @@ static void test_table_with_int_key(void) { census_ht_key key; key.val = i; val = census_ht_find(ht, key); - GPR_ASSERT(val == (void*)i); + GPR_ASSERT(val == (void*)(gpr_intptr)i); } elements = census_ht_get_all_elements(ht, &num_elements); GPR_ASSERT(elements != NULL); |