[Bug 133398] Changed - make check: strtod-test fail



http://bugzilla.gnome.org/show_bug.cgi?id=133398





------- Additional Comments From Jonas Jonsson alcesys se  2004-03-15 03:39 -------
Starting program:
/alcesys/build/garnome-0.30.1/platform/glib/work/main.d/glib-2.3.6/tests/.libs/strtod-test


Breakpoint 1, main () at strtod-test.c:58
58        d = pow (2.0, -1024.1);
(gdb) list
53        g_assert (d == g_ascii_strtod (g_ascii_dtostr (buffer,
sizeof (buffer), d), NULL));
54      
55        d =
-179769313486231570814527423731704356798070567525844996598917476803157260780028538760589558632766878171540458953514382464234321326889464182768467546703537516986049910576551282076245490090389328944075868508455133942304583236903222948165808559332123348274797826204144723168738177180919299881250404026184124858368.0;
56        g_assert (d == g_ascii_strtod (g_ascii_dtostr (buffer,
sizeof (buffer), d), NULL));
57        
58        d = pow (2.0, -1024.1);
59        g_assert (d == g_ascii_strtod (g_ascii_dtostr (buffer,
sizeof (buffer), d), NULL));
60        
61        d = -pow (2.0, -1024.1);
62        g_assert (d == g_ascii_strtod (g_ascii_dtostr (buffer,
sizeof (buffer), d), NULL));
(gdb) print buffer
$1 = "-1 7976931348623157e+308\000\000\000\000 \000V°\000\003ÿÿ~"



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]