mirror of
https://github.com/fmtlib/fmt.git
synced 2024-12-26 00:21:13 +00:00
Fix the build.
This commit is contained in:
parent
7b970285da
commit
529045b65d
@ -322,7 +322,7 @@ void Formatter::FormatDouble(T value, const FormatSpec &spec, int precision) {
|
||||
sign = (spec.flags & PLUS_FLAG) != 0 ? '+' : ' ';
|
||||
}
|
||||
|
||||
if (isnan(value)) {
|
||||
if (value != value) {
|
||||
// Format NaN ourselves because sprintf's output is not consistent
|
||||
// across platforms.
|
||||
std::size_t size = 4;
|
||||
|
Loading…
Reference in New Issue
Block a user