[ox/std] 32 bit system fixes

This commit is contained in:
Gary Talent 2023-11-12 00:41:47 -06:00
parent 158115c29f
commit d9b676d1b2
3 changed files with 3 additions and 3 deletions

View File

@ -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));

View File

@ -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));

View File

@ -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;