From 7b50a4a94b0c7df68b3a854c850b551aaef0a8b4 Mon Sep 17 00:00:00 2001 From: Abseil Team Date: Fri, 13 Jul 2018 09:29:26 -0700 Subject: [PATCH] Export of internal Abseil changes. -- 50154b443b21a5123c50bebcfb866581e2e5b907 by Xiaoyi Zhang : Import https://github.com/abseil/abseil-cpp/pull/144 PiperOrigin-RevId: 204482647 -- ffefb7e0f9861a24296e672a5e32bbb56051239a by Abseil Team : Cast ABSL_MIN_LOG_LEVEL to absl::LogSeverity rather than casting severity to int. This allows it to be defined symbolically e.g. -DABSL_MIN_LOG_LEVEL=absl::LogSeverity::kError. PiperOrigin-RevId: 204347589 GitOrigin-RevId: 50154b443b21a5123c50bebcfb866581e2e5b907 Change-Id: I728baa8a3ad11ca28b731cc7979238c163e9c9a4 --- absl/base/internal/raw_logging.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/absl/base/internal/raw_logging.cc b/absl/base/internal/raw_logging.cc index 41101bd72..d9485a66c 100644 --- a/absl/base/internal/raw_logging.cc +++ b/absl/base/internal/raw_logging.cc @@ -139,7 +139,7 @@ void RawLogVA(absl::LogSeverity severity, const char* file, int line, #endif #ifdef ABSL_MIN_LOG_LEVEL - if (static_cast(severity) < ABSL_MIN_LOG_LEVEL && + if (severity < static_cast(ABSL_MIN_LOG_LEVEL) && severity < absl::LogSeverity::kFatal) { enabled = false; }