From 7d3ea5965d34323323bd60d3cfaef62e11790333 Mon Sep 17 00:00:00 2001 From: sreek Date: Tue, 29 Sep 2015 14:12:44 -0700 Subject: Fix float to bool conversion compilation error in mac --- src/core/support/histogram.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- cgit v1.2.3