Skip to content

Commit

Permalink
logs.hpp: fix fatal typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Nekotekina committed May 20, 2021
1 parent f0c4aa6 commit de94f6c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rpcs3/util/logs.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ namespace logs

operator level() const
{
return level(reinterpret_cast<uptr>(this) & 7);
return level(uchar(reinterpret_cast<uptr>(this) & 7));
}

const channel* operator->() const
Expand Down Expand Up @@ -125,7 +125,7 @@ namespace logs
template <typename... Args>
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)
{
Expand Down

0 comments on commit de94f6c

Please sign in to comment.