From 4f706ed69c712ac6c3efac250828295e3497b1e5 Mon Sep 17 00:00:00 2001 From: Nekotekina Date: Fri, 23 Jan 2015 15:57:50 +0300 Subject: [PATCH] ++ --- Utilities/StrFmt.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Utilities/StrFmt.h b/Utilities/StrFmt.h index ef8842062a..557a51ec4a 100644 --- a/Utilities/StrFmt.h +++ b/Utilities/StrFmt.h @@ -198,7 +198,7 @@ namespace fmt { return to_hex(arg, get_fmt_precision(fmt, len)); } - else if (fmt[len - 1] == 'd') + else if (fmt[len - 1] == 'd' || fmt[len - 1] == 'u') { return to_udec(arg); } @@ -220,7 +220,7 @@ namespace fmt { return to_hex(arg, get_fmt_precision(fmt, len)); } - else if (fmt[len - 1] == 'd') + else if (fmt[len - 1] == 'd' || fmt[len - 1] == 'u') { return to_udec(arg); } @@ -242,7 +242,7 @@ namespace fmt { return to_hex(arg, get_fmt_precision(fmt, len)); } - else if (fmt[len - 1] == 'd') + else if (fmt[len - 1] == 'd' || fmt[len - 1] == 'u') { return to_udec(arg); } @@ -264,7 +264,7 @@ namespace fmt { return to_hex(arg, get_fmt_precision(fmt, len)); } - else if (fmt[len - 1] == 'd') + else if (fmt[len - 1] == 'd' || fmt[len - 1] == 'u') { return to_udec(arg); } @@ -418,7 +418,7 @@ namespace fmt { return to_hex(arg, get_fmt_precision(fmt, len)); } - else if (fmt[len - 1] == 'd') + else if (fmt[len - 1] == 'd' || fmt[len - 1] == 'u') { return arg ? "1" : "0"; }