From 274e2ec717e87274d9e288cac9d87dc72fbee219 Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Fri, 17 Mar 2017 20:27:33 -0700 Subject: [PATCH] fixup! ircd::fmt: Support string_view; updates to the format string system. --- ircd/fmt.cc | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/ircd/fmt.cc b/ircd/fmt.cc index 6a9ee8dc1..7aecf3755 100644 --- a/ircd/fmt.cc +++ b/ircd/fmt.cc @@ -388,31 +388,31 @@ const return generate_integer(out, max, s, *reinterpret_cast(ptr)); if(type == typeid(const unsigned char)) - return generate_integer(out, max, s, *reinterpret_cast(ptr)); + return generate_integer(out, max, s, *reinterpret_cast(ptr)); if(type == typeid(const short)) - return generate_integer(out, max, s, *reinterpret_cast(ptr)); + return generate_integer(out, max, s, *reinterpret_cast(ptr)); if(type == typeid(const unsigned short)) - return generate_integer(out, max, s, *reinterpret_cast(ptr)); + return generate_integer(out, max, s, *reinterpret_cast(ptr)); if(type == typeid(const int)) - return generate_integer(out, max, s, *reinterpret_cast(ptr)); + return generate_integer(out, max, s, *reinterpret_cast(ptr)); if(type == typeid(const unsigned int)) - return generate_integer(out, max, s, *reinterpret_cast(ptr)); + return generate_integer(out, max, s, *reinterpret_cast(ptr)); if(type == typeid(const long)) - return generate_integer(out, max, s, *reinterpret_cast(ptr)); + return generate_integer(out, max, s, *reinterpret_cast(ptr)); if(type == typeid(const unsigned long)) - return generate_integer(out, max, s, *reinterpret_cast(ptr)); + return generate_integer(out, max, s, *reinterpret_cast(ptr)); if(type == typeid(const long long)) - return generate_integer(out, max, s, *reinterpret_cast(ptr)); + return generate_integer(out, max, s, *reinterpret_cast(ptr)); if(type == typeid(const unsigned long long)) - return generate_integer(out, max, s, *reinterpret_cast(ptr)); + return generate_integer(out, max, s, *reinterpret_cast(ptr)); if(type == typeid(const char[])) { @@ -698,7 +698,7 @@ fmt::generate_integer(char *&out, const spec &s, const integer &i) { - using karma::int_; + using karma::long_; using karma::maxwidth; struct generator @@ -706,7 +706,7 @@ fmt::generate_integer(char *&out, { karma::rule rule { - int_ + long_ }; generator(): rfc1459::gen::grammar{rule} {}