diff options
author | 2016-01-19 19:16:36 -0800 | |
---|---|---|
committer | 2016-01-20 15:13:42 -0800 | |
commit | f423b061101ba64514d67e7f601b6c30401d64b8 (patch) | |
tree | f9945621c5f3f50fb266cf80445ee3a1d6bb0f3a | |
parent | 4c70fe71872c34383581d9491312cc3f9860c558 (diff) |
fix 32bit compilation on mac
-rw-r--r-- | src/core/support/cpu_posix.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/support/cpu_posix.c b/src/core/support/cpu_posix.c index 5edb87d67f..8f01c284ca 100644 --- a/src/core/support/cpu_posix.c +++ b/src/core/support/cpu_posix.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 @@ -48,7 +48,7 @@ static long ncpus = 0; static void init_ncpus() { ncpus = sysconf(_SC_NPROCESSORS_ONLN); - if (ncpus < 1 || ncpus > UINT32_MAX) { + if (ncpus < 1 || ncpus > INT32_MAX) { gpr_log(GPR_ERROR, "Cannot determine number of CPUs: assuming 1"); ncpus = 1; } |