diff options
author | Yuchen Zeng <zyc@google.com> | 2016-04-15 15:16:52 -0700 |
---|---|---|
committer | Yuchen Zeng <zyc@google.com> | 2016-04-15 15:16:52 -0700 |
commit | b63fb4d20694242df417d98234b95e40775da23a (patch) | |
tree | 0955c3d8997f03737334ef67ba175d576475fa5d /src/core/lib | |
parent | 0c999523f35bae7739200f8d2a1d16cd8804eaac (diff) |
explicit convert severity to a signed type
Diffstat (limited to 'src/core/lib')
-rw-r--r-- | src/core/lib/support/log.c | 3 |
1 files changed, 2 insertions, 1 deletions
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)); |