diff --git a/deps/ox/src/ox/std/strops.hpp b/deps/ox/src/ox/std/strops.hpp index dd97178b9..80d3c97e2 100644 --- a/deps/ox/src/ox/std/strops.hpp +++ b/deps/ox/src/ox/std/strops.hpp @@ -170,7 +170,7 @@ constexpr T ox_itoa(Integer v, T str) noexcept { constexpr auto base = 10; auto it = 0; if (val < 0) { - str[it] = '-'; + str[static_cast(it)] = '-'; it++; } while (mod) { @@ -183,11 +183,11 @@ constexpr T ox_itoa(Integer v, T str) noexcept { start = 'a'; digit -= 10; } - str[it] = static_cast::type>(start + digit); + str[static_cast(it)] = static_cast::type>(start + digit); it++; } } - str[it] = 0; + str[static_cast(it)] = 0; } else { // 0 is a special case str[0] = '0';