From 2e0d64cf2fb296032ca11e522ebef5edc6336974 Mon Sep 17 00:00:00 2001 From: Alexey Ochapov Date: Tue, 6 Apr 2021 23:54:17 +0300 Subject: [PATCH] specify size for `prefixes` static data --- include/fmt/format.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/fmt/format.h b/include/fmt/format.h index f7d7efb0..9031f856 100644 --- a/include/fmt/format.h +++ b/include/fmt/format.h @@ -971,8 +971,8 @@ template struct FMT_EXTERN_TEMPLATE_API basic_data { static const char reset_color[5]; static const wchar_t wreset_color[5]; static const char signs[]; - static constexpr const unsigned prefixes[] = {0, 0, 0x1000000u | '+', - 0x1000000u | ' '}; + static constexpr const unsigned prefixes[4] = {0, 0, 0x1000000u | '+', + 0x1000000u | ' '}; static constexpr const char left_padding_shifts[] = {31, 31, 0, 1, 0}; static constexpr const char right_padding_shifts[] = {0, 31, 0, 1, 0};