Merge commit '8c39be2b0682ec31b0c62623a8a921467b09cfe1' into pre-macro

This commit is contained in:
2024-12-18 23:40:19 -06:00
2 changed files with 3 additions and 1 deletions

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");
}