aboutsummaryrefslogtreecommitdiff
path: root/math/s_nanl.c
diff options
context:
space:
mode:
Diffstat (limited to 'math/s_nanl.c')
-rw-r--r--math/s_nanl.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/math/s_nanl.c b/math/s_nanl.c
index 73387a9..4e1fc80 100644
--- a/math/s_nanl.c
+++ b/math/s_nanl.c
@@ -28,13 +28,6 @@
long double
__nanl (const char *tagp)
{
- if (tagp[0] != '\0')
- {
- char buf[6 + strlen (tagp)];
- sprintf (buf, "NAN(%s)", tagp);
- return strtold (buf, NULL);
- }
-
- return NAN;
+ return __strtold_nan (tagp, NULL, 0);
}
weak_alias (__nanl, nanl)