aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorclyne <clyne@bitgloo.com>2020-06-28 09:22:44 -0400
committerGitHub <noreply@github.com>2020-06-28 09:22:44 -0400
commit837c3cc7f7a174979fbc9e66486fa559e440a007 (patch)
treeb138b3fe73cec671b606bddbf2964788b922ff57
parent2006aa7e923a21431baf3c65fd26c41235964b3b (diff)
removed unnecessary base support
-rw-r--r--f_to_string.hpp2
1 files changed, 1 insertions, 1 deletions
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';
}