mirror of https://github.com/encounter/SDL.git
Fixed compiler warning with mingw-w64
This commit is contained in:
parent
657ad72ac4
commit
c1fd0fbb32
|
@ -1197,7 +1197,7 @@ SDL_vsscanf(const char *text, const char *fmt, va_list ap)
|
||||||
/* Fall through to unsigned handling */
|
/* Fall through to unsigned handling */
|
||||||
case 'u':
|
case 'u':
|
||||||
if (inttype == DO_LONGLONG) {
|
if (inttype == DO_LONGLONG) {
|
||||||
Uint64 value;
|
Uint64 value = 0;
|
||||||
advance = SDL_ScanUnsignedLongLong(text, radix, &value);
|
advance = SDL_ScanUnsignedLongLong(text, radix, &value);
|
||||||
text += advance;
|
text += advance;
|
||||||
if (advance && !suppress) {
|
if (advance && !suppress) {
|
||||||
|
@ -1206,7 +1206,7 @@ SDL_vsscanf(const char *text, const char *fmt, va_list ap)
|
||||||
++retval;
|
++retval;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
unsigned long value;
|
unsigned long value = 0;
|
||||||
advance = SDL_ScanUnsignedLong(text, radix, &value);
|
advance = SDL_ScanUnsignedLong(text, radix, &value);
|
||||||
text += advance;
|
text += advance;
|
||||||
if (advance && !suppress) {
|
if (advance && !suppress) {
|
||||||
|
@ -1240,7 +1240,7 @@ SDL_vsscanf(const char *text, const char *fmt, va_list ap)
|
||||||
break;
|
break;
|
||||||
case 'p':
|
case 'p':
|
||||||
{
|
{
|
||||||
uintptr_t value;
|
uintptr_t value = 0;
|
||||||
advance = SDL_ScanUintPtrT(text, 16, &value);
|
advance = SDL_ScanUintPtrT(text, 16, &value);
|
||||||
text += advance;
|
text += advance;
|
||||||
if (advance && !suppress) {
|
if (advance && !suppress) {
|
||||||
|
|
Loading…
Reference in New Issue