From 837c3cc7f7a174979fbc9e66486fa559e440a007 Mon Sep 17 00:00:00 2001 From: clyne Date: Sun, 28 Jun 2020 09:22:44 -0400 Subject: [PATCH] removed unnecessary base support --- f_to_string.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/f_to_string.hpp b/f_to_string.hpp index 3d0fd18..8b91a90 100644 --- a/f_to_string.hpp +++ b/f_to_string.hpp @@ -44,7 +44,7 @@ class f_to_string_t { auto append = [](auto V, auto& ptr) { if (V != 0) { for (auto n = V; n; n /= 10) - *--ptr = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"[(V < 0 ? -1 : 1) * (n % 10)]; + *--ptr = (V < 0 ? -1 : 1) * (n % 10) + '0'; } else { *--ptr = '0'; }