[ox/std] Fix Linux build
All checks were successful
Build / build (push) Successful in 2m29s

This commit is contained in:
Gary Talent 2024-05-23 01:38:57 -05:00
parent fbeb08156a
commit 9105b1ece6

View File

@ -19,13 +19,13 @@ namespace ox {
constexpr std::ios_base::seekdir sdMap(ox::ios_base::seekdir in) noexcept {
switch (in) {
case ox::ios_base::beg:
return std::ios_base::seekdir::beg;
return std::ios_base::beg;
case ox::ios_base::end:
return std::ios_base::seekdir::end;
return std::ios_base::end;
case ox::ios_base::cur:
return std::ios_base::seekdir::cur;
return std::ios_base::cur;
}
return std::ios_base::seekdir::beg;
return std::ios_base::beg;
}
ox::Result<char> StreamReader::peek() const noexcept {
@ -48,7 +48,7 @@ ox::Result<std::size_t> StreamReader::read(char *v, std::size_t cnt) noexcept {
ox::Error StreamReader::seekg(std::size_t p) noexcept {
try {
m_strm.seekg(static_cast<long long int>(p), std::ios_base::seekdir::cur);
m_strm.seekg(static_cast<long long int>(p), std::ios_base::cur);
} catch (std::exception const&) {
return OxError(1, "seekg failed");
}