diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/util/strformat.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/util/strformat.h b/src/lib/util/strformat.h index 4e0f4974c7d..3bf95a5df29 100644 --- a/src/lib/util/strformat.h +++ b/src/lib/util/strformat.h @@ -1219,7 +1219,7 @@ public: static void apply(Stream &str, format_flags const &flags, U const *value) { static_assert( - !format_output::template string_semantics<U>::value || (N <= size_t(unsigned(std::numeric_limits<int>::max()))), + !format_output::template string_semantics<U>::value || (N <= size_t(unsigned((std::numeric_limits<int>::max)()))), "C string array length must not exceed maximum integer value"); format_flags f(flags); if (format_output::template string_semantics<U>::value && ((0 > f.get_precision()) || (N < unsigned(f.get_precision())))) |