commit b9e8a9e33bfdfaf5e15ea82db78db41a388978a1
parent 577d8267b8d76eb6750df8b6455c0228cb553828
Author: d.levin256@gmail.com <d.levin256@gmail.com>
Date: Tue, 6 Sep 2016 14:35:05 +0300
Fix complex number printing
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/kfr/cometa/string.hpp b/include/kfr/cometa/string.hpp
@@ -60,7 +60,7 @@ constexpr auto itoa()
template <typename T, char t, int width, int prec, CMT_ENABLE_IF(width < 0 && prec >= 0)>
CMT_INLINE constexpr auto value_fmt_arg(ctype_t<fmt_t<T, t, width, prec>>)
{
- return concat_cstring(make_cstring("%."), itoa<prec>());
+ return concat_cstring(make_cstring("."), itoa<prec>());
}
template <typename T, char t, int width, int prec, CMT_ENABLE_IF(width >= 0 && prec < 0)>
CMT_INLINE constexpr auto value_fmt_arg(ctype_t<fmt_t<T, t, width, prec>>)