[ox/std] Fix some Windows warnings

This commit is contained in:
Gary Talent 2024-05-22 00:26:56 -05:00
parent 752c8c1db3
commit f6a0ae2027
2 changed files with 3 additions and 3 deletions

View File

@ -42,11 +42,11 @@ ox::Result<std::size_t> FileReader::read(char *v, std::size_t cnt) noexcept {
}
ox::Error FileReader::seekg(std::size_t p) noexcept {
return OxError(fseek(m_file, static_cast<int64_t>(p), SEEK_CUR) != 0);
return OxError(fseek(m_file, static_cast<long>(p), SEEK_CUR) != 0);
}
ox::Error FileReader::seekg(int64_t p, ios_base::seekdir sd) noexcept {
return OxError(fseek(m_file, p, sdMap(sd)) != 0);
return OxError(fseek(m_file, static_cast<long>(p), sdMap(sd)) != 0);
}
ox::Result<std::size_t> FileReader::tellg() noexcept {

View File

@ -26,7 +26,7 @@
namespace ox {
#if defined(OX_USE_STDLIB) && __has_include(<unistd.h>)
[[nodiscard]]
[[nodiscard]] [[maybe_unused]]
static auto symbolicate([[maybe_unused]]void **frames,
[[maybe_unused]]std::size_t frameCnt,
[[maybe_unused]]const char *linePrefix) {