From 9a92dadff794107bf3386b2b533f37c7ff5e4c26 Mon Sep 17 00:00:00 2001 From: Gary Talent <gary@drinkingtea.net> Date: Mon, 22 Feb 2021 22:23:10 -0600 Subject: [PATCH] [ox/std] Remove implicit type conversion from ox_itoa --- deps/ox/src/ox/std/strops.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deps/ox/src/ox/std/strops.hpp b/deps/ox/src/ox/std/strops.hpp index 39213831..d2534638 100644 --- a/deps/ox/src/ox/std/strops.hpp +++ b/deps/ox/src/ox/std/strops.hpp @@ -157,7 +157,7 @@ constexpr T ox_itoa(Integer v, T str) noexcept { start = 'a'; digit -= 10; } - str[it] = start + digit; + str[it] = static_cast<typename ox::remove_reference<decltype(str[0])>::type>(start + digit); it++; } }