From de94f6c2f69b0e54591bab5e41b04ab26db54e29 Mon Sep 17 00:00:00 2001 From: Nekotekina Date: Thu, 20 May 2021 19:10:32 +0300 Subject: [PATCH] logs.hpp: fix fatal typo --- rpcs3/util/logs.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rpcs3/util/logs.hpp b/rpcs3/util/logs.hpp index 2dc9ab4d6f..39ba189816 100644 --- a/rpcs3/util/logs.hpp +++ b/rpcs3/util/logs.hpp @@ -41,7 +41,7 @@ namespace logs operator level() const { - return level(reinterpret_cast(this) & 7); + return level(uchar(reinterpret_cast(this) & 7)); } const channel* operator->() const @@ -125,7 +125,7 @@ namespace logs template FORCE_INLINE SAFE_BUFFERS(void) message::operator()(const const_str& fmt, const Args&... args) const { - if (*this < (*this)->enabled) [[unlikely]] + if (*this <= (*this)->enabled.observe()) [[unlikely]] { if constexpr (sizeof...(Args) > 0) {