Skip to content

Commit

Permalink
[Logs] Fix uint8_t formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Nekotekina committed Jul 15, 2023
1 parent 3eb73b5 commit 9717128
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions orbis-kernel/src/utils/Logs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ static void append_hex(std::string &out, std::unsigned_integral auto value) {
if (value < 10)
buf << value;
else if (value >= decltype(value)(UINTMAX_MAX) - 1)
buf << "-" << -value;
buf << "-" << std::uintmax_t(decltype(value)(-value));
else
buf << "0x" << std::hex << value;
buf << "0x" << std::hex << std::uintmax_t(value);
out += buf.str();
}

Expand Down

0 comments on commit 9717128

Please sign in to comment.