[ox/std] Fix some Windows warnings
This commit is contained in:
parent
752c8c1db3
commit
f6a0ae2027
4
deps/ox/src/ox/std/reader.cpp
vendored
4
deps/ox/src/ox/std/reader.cpp
vendored
@ -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 {
|
||||
|
2
deps/ox/src/ox/std/stacktrace.cpp
vendored
2
deps/ox/src/ox/std/stacktrace.cpp
vendored
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user