From 9624b2546b32e42c9c961feceed93852abb0410c Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Mon, 19 Jan 2026 21:00:12 -0600 Subject: [PATCH] [ox/std] Fix intToStr to have room for negatives (synced from 522bb14f18c104547f45002b931385a52ad093d2) --- src/ox/std/istring.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/ox/std/istring.hpp b/src/ox/std/istring.hpp index a21a586cd..df609de77 100644 --- a/src/ox/std/istring.hpp +++ b/src/ox/std/istring.hpp @@ -250,16 +250,16 @@ constexpr auto intToStr(Integer v) noexcept { auto out = 0; switch (sizeof(Integer)) { case 1: - out = 3; + out = 4; break; case 2: - out = 5; + out = 6; break; case 4: - out = 10; + out = 11; break; case 8: - out = 21; + out = 22; break; } return out + ox::is_signed_v;