From b4a17fe6b227c593ffc6df358b5aed8818d09156 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonathan=20M=C3=BCller?= Date: Tue, 13 Mar 2018 20:47:24 +0100 Subject: [PATCH] Fix int64_t -> unsigned conversion --- include/fmt/core.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/include/fmt/core.h b/include/fmt/core.h index 8acc2f6029cff..f43c579dc3063 100644 --- a/include/fmt/core.h +++ b/include/fmt/core.h @@ -1064,8 +1064,9 @@ class basic_format_args { unsigned max_size() const { int64_t signed_types = static_cast(types_); - return signed_types < 0 ? - -signed_types : static_cast(internal::max_packed_args); + return static_cast(signed_types < 0 + ? -signed_types + : static_cast(internal::max_packed_args)); } };