[ox/std] 32 bit system fixes
This commit is contained in:
parent
158115c29f
commit
d9b676d1b2
2
deps/ox/src/ox/std/fmt.hpp
vendored
2
deps/ox/src/ox/std/fmt.hpp
vendored
@ -193,7 +193,7 @@ constexpr StringType sfmt(StringView fmt, Args... args) noexcept {
|
||||
const auto &firstSegment = fmtSegments.segments[0];
|
||||
oxIgnoreError(out.append(firstSegment.str, firstSegment.length));
|
||||
const detail::FmtArg elements[sizeof...(args)] = {args...};
|
||||
for (auto i = 0ull; i < fmtSegments.size - 1; ++i) {
|
||||
for (size_t i = 0; i < fmtSegments.size - 1; ++i) {
|
||||
out += elements[i].out;
|
||||
const auto &s = fmtSegments.segments[i + 1];
|
||||
oxIgnoreError(out.append(s.str, s.length));
|
||||
|
2
deps/ox/src/ox/std/trace.hpp
vendored
2
deps/ox/src/ox/std/trace.hpp
vendored
@ -151,7 +151,7 @@ class OutStream {
|
||||
const auto &firstSegment = fmtSegments.segments[0];
|
||||
oxIgnoreError(m_msg.msg.append(firstSegment.str, firstSegment.length));
|
||||
//const detail::FmtArg elements[sizeof...(args)] = {args...};
|
||||
for (auto i = 0ull; i < fmtSegments.size - 1; ++i) {
|
||||
for (size_t i = 0; i < fmtSegments.size - 1; ++i) {
|
||||
m_msg.msg += elements[i].out;
|
||||
const auto &s = fmtSegments.segments[i + 1];
|
||||
oxIgnoreError(m_msg.msg.append(s.str, s.length));
|
||||
|
2
deps/ox/src/ox/std/uuid.hpp
vendored
2
deps/ox/src/ox/std/uuid.hpp
vendored
@ -128,7 +128,7 @@ class UUID {
|
||||
}
|
||||
UUID out;
|
||||
auto valueI = 0u;
|
||||
for (auto i = 0ull; i < s.len();) {
|
||||
for (size_t i = 0; i < s.len();) {
|
||||
if (s[i] == '-') {
|
||||
++i;
|
||||
continue;
|
||||
|
Loading…
Reference in New Issue
Block a user