aboutsummaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorGravatar Craig Tiller <craig.tiller@gmail.com>2016-01-05 16:50:28 -0800
committerGravatar Craig Tiller <craig.tiller@gmail.com>2016-01-05 16:50:28 -0800
commite8f9ba6b7f904a5b4376093ae631654f97f17e91 (patch)
treed6e39f1a10be2e2148b57cde82c23336c402bf49 /test
parentd3917ab79003013d33f456a5c63ce868d6ea3072 (diff)
Fix compilation with clang/gcc
Diffstat (limited to 'test')
-rw-r--r--test/core/support/cpu_test.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/core/support/cpu_test.c b/test/core/support/cpu_test.c
index 138ad6a19e..010a96bbcb 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. */