[ros-diffs] [gschneider] 44304: [msvcrt] Update scanf family with a patch that also went to Wine (http://source.winehq.org/git/wine.git/?a=commit; h=2043035e1749e40e23853d751ac1410d39fc8d27): Calculate floating point decimals in internally used long double precision. Fixes bug #4092 (calculator imprecision)

gschneider at svn.reactos.org gschneider at svn.reactos.org
Sat Nov 28 16:01:40 CET 2009


Author: gschneider
Date: Sat Nov 28 16:01:40 2009
New Revision: 44304

URL: http://svn.reactos.org/svn/reactos?rev=44304&view=rev
Log:
[msvcrt] Update scanf family with a patch that also went to Wine (http://source.winehq.org/git/wine.git/?a=commit;h=2043035e1749e40e23853d751ac1410d39fc8d27):
Calculate floating point decimals in internally used long double precision.
Fixes bug #4092 (calculator imprecision)

Modified:
    trunk/reactos/lib/sdk/crt/string/scanf.h

Modified: trunk/reactos/lib/sdk/crt/string/scanf.h
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/lib/sdk/crt/string/scanf.h?rev=44304&r1=44303&r2=44304&view=diff
==============================================================================
--- trunk/reactos/lib/sdk/crt/string/scanf.h [iso-8859-1] (original)
+++ trunk/reactos/lib/sdk/crt/string/scanf.h [iso-8859-1] Sat Nov 28 16:01:40 2009
@@ -266,7 +266,7 @@
 		    }
 		    /* handle decimals */
                     if (width!=0 && nch == '.') {
-                        float dec = 1;
+                        long double dec = 1;
                         nch = _GETC_(file);
 			if (width>0) width--;
                         while (width!=0 && (nch!=_EOF_) && _ISDIGIT_(nch)) {




More information about the Ros-diffs mailing list