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=2043035e1749e40e23853d751…):
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…
==============================================================================
--- 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)) {