aboutsummaryrefslogtreecommitdiffstats
path: root/f_to_string.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'f_to_string.hpp')
-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';
}