[Bug 659] strtold() returns meaningless number on Asus WL-500gP router w/OpenWRT

bugzilla at busybox.net bugzilla at busybox.net
Fri Mar 12 18:43:33 UTC 2010


https://bugs.busybox.net/show_bug.cgi?id=659


Bernhard Reutner-Fischer <aldot at uclibc.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |WORKSFORME
            Version|unspecified                 |<= 0.9.29.x




--- Comment #1 from Bernhard Reutner-Fischer <aldot at uclibc.org>  2010-03-12 18:43:32 UTC ---
This sounds more like a miscompilation to me, but i don't know what hardware
that router is.

I'm closing this for now since it works for me (see below). Don't hesitate to
reopen if you can provide more detail.

thanks,

$ gcc -Os strtold.c && ./a.out
Lg=2
g =2
f =2.000000
$ cat strtold.c 
#include <stdlib.h>
#include <stdio.h>
int main(void) {
        printf("Lg=%Lg\n", strtold("2.0000", NULL));
        printf("g =%g\n", strtod("2.0000", NULL));
        printf("f =%f\n", strtof("2.0000", NULL));
        return 0;
}


-- 
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


More information about the uClibc-cvs mailing list