From f514b33b06ad428b433568e2a4e83f7c782b1ab7 Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Sun, 16 Jul 2023 13:53:28 -0500 Subject: [PATCH] [ox/std] Fix some type implicit conversions in ox_itoa --- deps/ox/src/ox/std/strops.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/deps/ox/src/ox/std/strops.hpp b/deps/ox/src/ox/std/strops.hpp index dd97178b..80d3c97e 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';