[CRT] Fix MSVC warnings
authorTimo Kreuzer <timo.kreuzer@reactos.org>
Sat, 2 May 2015 22:19:31 +0000 (22:19 +0000)
committerTimo Kreuzer <timo.kreuzer@reactos.org>
Sat, 2 May 2015 22:19:31 +0000 (22:19 +0000)
svn path=/trunk/; revision=67519

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

index 4a28c92..fe272c9 100644 (file)
@@ -297,7 +297,7 @@ _FUNCTION_ {
                    if (!seendigit) break; /* not a valid number */
                     st = 1;
                     if (!suppress) {
-#define _SET_NUMBER_(type) *va_arg(ap, type*) = negative ? -cur : cur
+#define _SET_NUMBER_(type) *va_arg(ap, type*) = negative ? -(LONGLONG)cur : cur
                        if (I64_prefix) _SET_NUMBER_(LONGLONG);
                        else if (l_prefix) _SET_NUMBER_(LONG);
                        else if (h_prefix == 1) _SET_NUMBER_(short int);
@@ -640,7 +640,7 @@ _FUNCTION_ {
                            if ((*(format - 1)) < *(format + 1))
                                RtlSetBits(&bitMask, *(format - 1) +1 , *(format + 1) - *(format - 1));
                            else
-                               RtlSetBits(&bitMask, *(format + 1)    , *(format - 1) - *(format + 1));                       
+                               RtlSetBits(&bitMask, *(format + 1)    , *(format - 1) - *(format + 1));
                            format++;
                        } else
                            RtlSetBits(&bitMask, *format, 1);