From 3460318121fecb2e9f41ef51e8be8cdff778c811 Mon Sep 17 00:00:00 2001 From: Aleksey Bragin Date: Thu, 11 Sep 2008 07:06:22 +0000 Subject: [PATCH] Gregor Schneider - 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. svn path=/trunk/; revision=36130 --- reactos/lib/sdk/crt/stdio/lnx_sprintf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reactos/lib/sdk/crt/stdio/lnx_sprintf.c b/reactos/lib/sdk/crt/stdio/lnx_sprintf.c index c8508a577ea..8b3e2539e1a 100644 --- a/reactos/lib/sdk/crt/stdio/lnx_sprintf.c +++ b/reactos/lib/sdk/crt/stdio/lnx_sprintf.c @@ -596,7 +596,7 @@ int __cdecl lnx_vsnprintf(char *buf, size_t cnt, const char *fmt, va_list args) } 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;