From b63fb4d20694242df417d98234b95e40775da23a Mon Sep 17 00:00:00 2001 From: Yuchen Zeng Date: Fri, 15 Apr 2016 15:16:52 -0700 Subject: explicit convert severity to a signed type --- src/core/lib/support/log.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/core/lib') diff --git a/src/core/lib/support/log.c b/src/core/lib/support/log.c index 5a47d2d3d5..882abf673c 100644 --- a/src/core/lib/support/log.c +++ b/src/core/lib/support/log.c @@ -60,7 +60,8 @@ const char *gpr_log_severity_string(gpr_log_severity severity) { void gpr_log_message(const char *file, int line, gpr_log_severity severity, const char *message) { - if (severity < gpr_atm_no_barrier_load(&g_min_severity_to_print)) return; + if ((gpr_atm)severity < gpr_atm_no_barrier_load(&g_min_severity_to_print)) + return; gpr_log_func_args lfargs; memset(&lfargs, 0, sizeof(lfargs)); -- cgit v1.2.3