From e8f9ba6b7f904a5b4376093ae631654f97f17e91 Mon Sep 17 00:00:00 2001 From: Craig Tiller Date: Tue, 5 Jan 2016 16:50:28 -0800 Subject: [PATCH] Fix compilation with clang/gcc --- test/core/support/cpu_test.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/core/support/cpu_test.c b/test/core/support/cpu_test.c index 138ad6a19eb..010a96bbcb2 100644 --- a/test/core/support/cpu_test.c +++ b/test/core/support/cpu_test.c @@ -73,13 +73,13 @@ struct cpu_test { int is_done; gpr_cv done_cv; int *used; /* is this core used? */ - int r; /* random number */ + unsigned r; /* random number */ }; static void worker_thread(void *arg) { struct cpu_test *ct = (struct cpu_test *)arg; gpr_uint32 cpu; - int r = 12345678; + unsigned r = 12345678; unsigned i, j; for (i = 0; i < 1000 / GRPC_TEST_SLOWDOWN_FACTOR; i++) { /* run for a bit - just calculate something random. */