]> git.ipfire.org Git - thirdparty/glibc.git/blobdiff - stdlib/strtod_nan_main.c
Update copyright dates with scripts/update-copyrights.
[thirdparty/glibc.git] / stdlib / strtod_nan_main.c
index 9f7dd14ad2277063eab5e5783737279fe6461145..db3f05395088d1a0c8d0fe74f71bff00b823eb3d 100644 (file)
@@ -1,5 +1,5 @@
 /* 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
@@ -14,7 +14,7 @@
 
    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>
@@ -52,7 +52,7 @@ STRTOD_NAN (const STRING_TYPE *str, STRING_TYPE **endptr, STRING_TYPE endc)
 
   mant = STRTOULL (str, &endp, 0);
   if (endp == cp)
-    SET_MANTISSA (retval, mant);
+    SET_NAN_PAYLOAD (retval, mant);
 
  out:
   if (endptr != NULL)