[ox/std] Fix unnecessary implicit sign conversion
This commit is contained in:
parent
d8153e71e1
commit
22a7ff74ce
4
deps/ox/src/ox/std/fmt.hpp
vendored
4
deps/ox/src/ox/std/fmt.hpp
vendored
@ -153,9 +153,9 @@ template<std::size_t segementCnt>
|
||||
[[nodiscard]]
|
||||
constexpr Fmt<segementCnt> fmtSegments(StringView fmt) noexcept {
|
||||
Fmt<segementCnt> out;
|
||||
const auto prev = [fmt](int i) -> char {
|
||||
const auto prev = [fmt](std::size_t i) -> char {
|
||||
if (i > 0) {
|
||||
return fmt[static_cast<std::size_t>(i) - 1];
|
||||
return fmt[i - 1];
|
||||
} else {
|
||||
return '\0';
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user