mirror of
https://github.com/fastfloat/fast_float.git
synced 2025-12-06 16:56:57 +08:00
Fix clang workaround for parsing -0 on non-nearest rounding mode
This commit is contained in:
parent
360977f968
commit
5b8290433c
@ -191,7 +191,7 @@ from_chars_result from_chars_advanced(const char *first, const char *last,
|
||||
#if defined(__clang__)
|
||||
// Clang may map 0 to -0.0 when fegetround() == FE_DOWNWARD
|
||||
if(pns.mantissa == 0) {
|
||||
value = 0;
|
||||
value = pns.negative ? -0. : 0.;
|
||||
return answer;
|
||||
}
|
||||
#endif
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user