[ox/std] Fix compiler warning

This commit is contained in:
Gary Talent 2024-12-14 21:02:33 -06:00
parent fcdcfd10d1
commit 1bc050026f

View File

@ -32,7 +32,7 @@ ox::Result<char> StreamReader::peek() const noexcept {
try {
char c{};
m_strm.get(c);
auto const ok = c != EOF;
auto const ok = c != static_cast<char>(EOF);
if (ok && m_strm.unget()) [[unlikely]] {
return ox::Error(1, "Unable to unget character");
}