diff options
author | Craig Tiller <ctiller@google.com> | 2016-03-09 07:44:51 -0800 |
---|---|---|
committer | Craig Tiller <ctiller@google.com> | 2016-03-09 07:44:51 -0800 |
commit | 5f3ba8c834b829254f85fedee6441fc82f14bcfc (patch) | |
tree | b404e226d011fb3cf44d3272b88421e40c3c5684 /test | |
parent | a39c1995623ed5ef48c49fc5212f2140b3390462 (diff) |
Copyright, casting fixes
Diffstat (limited to 'test')
-rw-r--r-- | test/core/iomgr/timer_heap_test.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/core/iomgr/timer_heap_test.c b/test/core/iomgr/timer_heap_test.c index 4510d51bd7..cd34696f7d 100644 --- a/test/core/iomgr/timer_heap_test.c +++ b/test/core/iomgr/timer_heap_test.c @@ -1,6 +1,6 @@ /* * - * Copyright 2015, Google Inc. + * Copyright 2015-2016, Google Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -184,7 +184,7 @@ static void test2(void) { memset(elems, 0, sizeof(elems)); for (size_t round = 0; round < 10000; round++) { - int r = (size_t)rand() % 1000; + int r = rand() % 1000; if (r <= 550) { /* 55% of the time we try to add something */ elem_struct *el = search_elems(elems, GPR_ARRAY_SIZE(elems), false); |