diff options
Diffstat (limited to 'math/s_nanf.c')
-rw-r--r-- | math/s_nanf.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/math/s_nanf.c b/math/s_nanf.c index 2d3fcc5803..6a98422e6c 100644 --- a/math/s_nanf.c +++ b/math/s_nanf.c @@ -28,13 +28,6 @@ float __nanf (const char *tagp) { - if (tagp[0] != '\0') - { - char buf[6 + strlen (tagp)]; - sprintf (buf, "NAN(%s)", tagp); - return strtof (buf, NULL); - } - - return NAN; + return __strtof_nan (tagp, NULL, 0); } weak_alias (__nanf, nanf) |