From c65864ffb681eff88bc1af1fa8eb4128a6dd3494 Mon Sep 17 00:00:00 2001 From: SecretsOTheP Date: Thu, 21 Dec 2017 14:55:59 +0000 Subject: [PATCH] Fixed Ubuntu 17.10 compiles --- libs/format/fmt/format.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libs/format/fmt/format.h b/libs/format/fmt/format.h index 47a8b74d8..9c2827d46 100644 --- a/libs/format/fmt/format.h +++ b/libs/format/fmt/format.h @@ -1719,6 +1719,8 @@ FMT_DEFINE_INT_FORMATTERS(unsigned long) FMT_DEFINE_INT_FORMATTERS(LongLong) FMT_DEFINE_INT_FORMATTERS(ULongLong) +#define CHAR_WIDTH 1 + /** \rst Returns a string formatter that pads the formatted argument with the fill @@ -1823,7 +1825,7 @@ class ArgFormatterBase : public ArgVisitor { typedef typename BasicWriter::CharPtr CharPtr; Char fill = internal::CharTraits::cast(spec_.fill()); CharPtr out = CharPtr(); - const unsigned CHAR_WIDTH = 1; + if (spec_.width_ > CHAR_WIDTH) { out = writer_.grow_buffer(spec_.width_); if (spec_.align_ == ALIGN_RIGHT) {