Author: fireball
Date: Thu Sep 11 02:06:22 2008
New Revision: 36130
URL:
http://svn.reactos.org/svn/reactos?rev=36130&view=rev
Log:
Gregor Schneider <grschneider(a)gmail.com>
- Don't cast the floating point number to integer for conversion (numberf was created
especially for floating point types)
See issue #3585 for more details.
Modified:
trunk/reactos/lib/sdk/crt/stdio/lnx_sprintf.c
Modified: trunk/reactos/lib/sdk/crt/stdio/lnx_sprintf.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/sdk/crt/stdio/lnx_spri…
==============================================================================
--- trunk/reactos/lib/sdk/crt/stdio/lnx_sprintf.c [iso-8859-1] (original)
+++ trunk/reactos/lib/sdk/crt/stdio/lnx_sprintf.c [iso-8859-1] Thu Sep 11 02:06:22 2008
@@ -596,7 +596,7 @@
} else {
if ( precision == -1 )
precision = 6;
- str = numberf(str, end, (int)_double, base, field_width, precision,
flags);
+ str = numberf(str, end, _double, base, field_width, precision, flags);
}
continue;