/* Convert string for NaN payload to corresponding NaN.
- Copyright (C) 1997-2017 Free Software Foundation, Inc.
+ Copyright (C) 1997-2020 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
You should have received a copy of the GNU Lesser General Public
License along with the GNU C Library; if not, see
- <http://www.gnu.org/licenses/>. */
+ <https://www.gnu.org/licenses/>. */
#include <ieee754.h>
#include <locale.h>
mant = STRTOULL (str, &endp, 0);
if (endp == cp)
- SET_MANTISSA (retval, mant);
+ SET_NAN_PAYLOAD (retval, mant);
out:
if (endptr != NULL)