Author: akhaldi
Date: Fri Mar 15 13:34:52 2013
New Revision: 58503
URL:
http://svn.reactos.org/svn/reactos?rev=58503&view=rev
Log:
[CALC]
* Fix some format specifiers.
Modified:
trunk/reactos/base/applications/calc/winmain.c
Modified: trunk/reactos/base/applications/calc/winmain.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/calc/win…
==============================================================================
--- trunk/reactos/base/applications/calc/winmain.c [iso-8859-1] (original)
+++ trunk/reactos/base/applications/calc/winmain.c [iso-8859-1] Fri Mar 15 13:34:52 2013
@@ -229,12 +229,12 @@
/* Try to load last selected layout */
GetProfileString(TEXT("SciCalc"), TEXT("layout"),
TEXT("0"), buf, SIZEOF(buf));
- if (_stscanf(buf, TEXT("%ld"), &calc.layout) != 1)
+ if (_stscanf(buf, TEXT("%lu"), &calc.layout) != 1)
calc.layout = CALC_LAYOUT_STANDARD;
/* Try to load last selected formatting option */
GetProfileString(TEXT("SciCalc"), TEXT("UseSep"),
TEXT("0"), buf, SIZEOF(buf));
- if (_stscanf(buf, TEXT("%ld"), &tmp) != 1)
+ if (_stscanf(buf, TEXT("%lu"), &tmp) != 1)
calc.usesep = FALSE;
else
calc.usesep = (tmp == 1) ? TRUE : FALSE;