Skip to content
Snippets Groups Projects
Commit b63fb4d2 authored by Yuchen Zeng's avatar Yuchen Zeng
Browse files

explicit convert severity to a signed type

parent 0c999523
No related branches found
No related tags found
No related merge requests found
...@@ -60,7 +60,8 @@ const char *gpr_log_severity_string(gpr_log_severity severity) { ...@@ -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, void gpr_log_message(const char *file, int line, gpr_log_severity severity,
const char *message) { 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; gpr_log_func_args lfargs;
memset(&lfargs, 0, sizeof(lfargs)); memset(&lfargs, 0, sizeof(lfargs));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment