diff --git a/src/core/lib/support/log.c b/src/core/lib/support/log.c
index 5a47d2d3d5aaaab7fe795b6b47253e521563bcac..882abf673c1b23b8ee93c71adbce7c0bf4534be7 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));