[msvcrt] Update scanf family with a patch that also went to Wine (http://source.wineh...
authorGregor Schneider <grschneider@gmail.com>
Sat, 28 Nov 2009 15:01:40 +0000 (15:01 +0000)
committerGregor Schneider <grschneider@gmail.com>
Sat, 28 Nov 2009 15:01:40 +0000 (15:01 +0000)
Calculate floating point decimals in internally used long double precision.
Fixes bug #4092 (calculator imprecision)

svn path=/trunk/; revision=44304

reactos/lib/sdk/crt/string/scanf.h

index bfe7a05..25c6336 100644 (file)
@@ -266,7 +266,7 @@ _FUNCTION_ {
                    }
                    /* 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)) {