From 5f3ba8c834b829254f85fedee6441fc82f14bcfc Mon Sep 17 00:00:00 2001
From: Craig Tiller <ctiller@google.com>
Date: Wed, 9 Mar 2016 07:44:51 -0800
Subject: [PATCH] Copyright, casting fixes

---
 src/core/iomgr/timer_heap.c       | 2 +-
 test/core/iomgr/timer_heap_test.c | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/core/iomgr/timer_heap.c b/src/core/iomgr/timer_heap.c
index 9d4aaf3eee..b5df566c45 100644
--- a/src/core/iomgr/timer_heap.c
+++ b/src/core/iomgr/timer_heap.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
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);
-- 
GitLab