diff --git a/deps/ox/src/ox/std/fmt.hpp b/deps/ox/src/ox/std/fmt.hpp index e41fc197..6019adb3 100644 --- a/deps/ox/src/ox/std/fmt.hpp +++ b/deps/ox/src/ox/std/fmt.hpp @@ -153,9 +153,9 @@ template [[nodiscard]] constexpr Fmt fmtSegments(StringView fmt) noexcept { Fmt out; - const auto prev = [fmt](int i) -> char { + const auto prev = [fmt](std::size_t i) -> char { if (i > 0) { - return fmt[static_cast(i) - 1]; + return fmt[i - 1]; } else { return '\0'; }