mirror of
https://github.com/fmtlib/fmt.git
synced 2024-12-24 21:16:56 +00:00
Fix error on MSVC.
This commit is contained in:
parent
0195f543d9
commit
73fda2a8b1
@ -1235,9 +1235,7 @@ TEST(FormatterTest, FormatNaN) {
|
||||
double nan = std::numeric_limits<double>::quiet_NaN();
|
||||
EXPECT_EQ("nan", str(Format("{}") << nan));
|
||||
EXPECT_EQ("+nan", str(Format("{:+}") << nan));
|
||||
#ifndef signbit
|
||||
# define signbit std::signbit
|
||||
#endif
|
||||
using namespace std;
|
||||
if (signbit(-nan))
|
||||
EXPECT_EQ("-nan", str(Format("{}") << -nan));
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user