diff options
author | Vijay Pai <vpai@google.com> | 2015-09-29 14:36:01 -0700 |
---|---|---|
committer | Vijay Pai <vpai@google.com> | 2015-09-29 14:36:01 -0700 |
commit | 3ba6bf57d70e17e8c172dab6f9f352f15cd8b26b (patch) | |
tree | 4ea5089aa5180f83bf650d9d650e017b8d647cc1 | |
parent | 3ac9317b8118d4da1a8fffeab8a6b85de9fe1597 (diff) | |
parent | 7d3ea5965d34323323bd60d3cfaef62e11790333 (diff) |
Merge pull request #3568 from sreecha/fix-mac-compilation-error
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; } |