diff options
author | sreek <sreek@google.com> | 2015-09-29 14:12:44 -0700 |
---|---|---|
committer | sreek <sreek@google.com> | 2015-09-29 14:12:44 -0700 |
commit | 7d3ea5965d34323323bd60d3cfaef62e11790333 (patch) | |
tree | 8432b0ff7d3e7a65f97e3998d50fcf9b51fda64c | |
parent | 2d8c6b37d1d86c4e98ed7cb7b7db213cc766a22f (diff) |
Fix float to bool conversion compilation error in mac
-rw-r--r-- | src/core/support/histogram.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/support/histogram.c b/src/core/support/histogram.c index 78dbf98684..8a1a9d9233 100644 --- a/src/core/support/histogram.c +++ b/src/core/support/histogram.c @@ -212,7 +212,7 @@ double gpr_histogram_percentile(gpr_histogram *h, double percentile) { } double gpr_histogram_mean(gpr_histogram *h) { - GPR_ASSERT(h->count); + GPR_ASSERT(h->count != 0); return h->sum / h->count; } |