File tree 2 files changed +5
-2
lines changed
2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 239
239
FMT_PRAGMA_GCC (push_options)
240
240
#if !defined(__OPTIMIZE__) && !defined(__CUDACC__) && !defined(FMT_MODULE)
241
241
FMT_PRAGMA_GCC (optimize(" Og" ))
242
- #define FMT_GCC_OPTIMIZED
242
+ # define FMT_GCC_OPTIMIZED
243
243
#endif
244
244
FMT_PRAGMA_CLANG (diagnostic push)
245
245
@@ -2153,7 +2153,9 @@ template <typename Context> class value {
2153
2153
constexpr FMT_INLINE value (unsigned short x FMT_BUILTIN) : uint_value(x) {}
2154
2154
constexpr FMT_INLINE value (int x) : int_value(x) {}
2155
2155
constexpr FMT_INLINE value (unsigned x FMT_BUILTIN) : uint_value(x) {}
2156
- FMT_CONSTEXPR FMT_INLINE value (long x FMT_BUILTIN) : value(long_type(x)) {}
2156
+ FMT_CONSTEXPR FMT_INLINE
2157
+ value (conditional_t <long_short || FMT_BUILTIN_TYPES, long , monostate> x)
2158
+ : value(long_type(x)) {}
2157
2159
FMT_CONSTEXPR FMT_INLINE value (unsigned long x FMT_BUILTIN)
2158
2160
: value(ulong_type(x)) {}
2159
2161
constexpr FMT_INLINE value (long long x FMT_BUILTIN) : long_long_value(x) {}
Original file line number Diff line number Diff line change 13
13
14
14
TEST (no_builtin_types_test, format) {
15
15
EXPECT_EQ (fmt::format (" {}" , 42 ), " 42" );
16
+ EXPECT_EQ (fmt::format (" {}" , 42L ), " 42" );
16
17
}
17
18
18
19
TEST (no_builtin_types_test, double_is_custom_type) {
You can’t perform that action at this time.
0 commit comments