From 91523d7181fd70dad5e9721e886e6d1da7c00ca1 Mon Sep 17 00:00:00 2001 From: Gregor Schneider Date: Sat, 28 Nov 2009 15:01:40 +0000 Subject: [PATCH] [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) svn path=/trunk/; revision=44304 --- reactos/lib/sdk/crt/string/scanf.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reactos/lib/sdk/crt/string/scanf.h b/reactos/lib/sdk/crt/string/scanf.h index bfe7a05119f..25c6336e1a1 100644 --- a/reactos/lib/sdk/crt/string/scanf.h +++ b/reactos/lib/sdk/crt/string/scanf.h @@ -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)) {