[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]]
|
[[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';
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user