From 01f29c5258971ac7951e290fcbc19f9443cd94d1 Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Tue, 9 Mar 2021 19:36:04 -0600 Subject: [PATCH] [ox/std] Fix itoa to handle unsigned ints without conversion warnings --- deps/ox/src/ox/std/strops.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deps/ox/src/ox/std/strops.hpp b/deps/ox/src/ox/std/strops.hpp index 5dc646e4..b78c111e 100644 --- a/deps/ox/src/ox/std/strops.hpp +++ b/deps/ox/src/ox/std/strops.hpp @@ -143,7 +143,7 @@ template template constexpr T ox_itoa(Integer v, T str) noexcept { if (v) { - auto mod = 1000000000000000000; + ox::ResizedInt_t mod = 1000000000000000000; constexpr auto base = 10; auto it = 0; if (v < 0) { @@ -155,7 +155,7 @@ constexpr T ox_itoa(Integer v, T str) noexcept { v %= mod; mod /= base; if (it || digit) { - int start = '0'; + ox::ResizedInt_t start = '0'; if (digit >= 10) { start = 'a'; digit -= 10;