[ox/std] Fix unnecessary implicit sign conversion

This commit is contained in:
Gary Talent 2022-12-18 16:32:46 -06:00
parent d8153e71e1
commit 22a7ff74ce

View File

@ -153,9 +153,9 @@ template<std::size_t segementCnt>
[[nodiscard]] [[nodiscard]]
constexpr Fmt<segementCnt> fmtSegments(StringView fmt) noexcept { constexpr Fmt<segementCnt> fmtSegments(StringView fmt) noexcept {
Fmt<segementCnt> out; Fmt<segementCnt> out;
const auto prev = [fmt](int i) -> char { const auto prev = [fmt](std::size_t i) -> char {
if (i > 0) { if (i > 0) {
return fmt[static_cast<std::size_t>(i) - 1]; return fmt[i - 1];
} else { } else {
return '\0'; return '\0';
} }