[ox/std] Fix compiler warning
This commit is contained in:
parent
fcdcfd10d1
commit
1bc050026f
2
deps/ox/src/ox/std/reader.cpp
vendored
2
deps/ox/src/ox/std/reader.cpp
vendored
@ -32,7 +32,7 @@ ox::Result<char> StreamReader::peek() const noexcept {
|
|||||||
try {
|
try {
|
||||||
char c{};
|
char c{};
|
||||||
m_strm.get(c);
|
m_strm.get(c);
|
||||||
auto const ok = c != EOF;
|
auto const ok = c != static_cast<char>(EOF);
|
||||||
if (ok && m_strm.unget()) [[unlikely]] {
|
if (ok && m_strm.unget()) [[unlikely]] {
|
||||||
return ox::Error(1, "Unable to unget character");
|
return ox::Error(1, "Unable to unget character");
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user