Skip to content

Commit

Permalink
Fixed compiler warning with mingw-w64
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Sep 5, 2017
1 parent 657ad72 commit c1fd0fb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/stdlib/SDL_string.c
Expand Up @@ -1197,7 +1197,7 @@ SDL_vsscanf(const char *text, const char *fmt, va_list ap)
/* Fall through to unsigned handling */
case 'u':
if (inttype == DO_LONGLONG) {
Uint64 value;
Uint64 value = 0;
advance = SDL_ScanUnsignedLongLong(text, radix, &value);
text += advance;
if (advance && !suppress) {
Expand All @@ -1206,7 +1206,7 @@ SDL_vsscanf(const char *text, const char *fmt, va_list ap)
++retval;
}
} else {
unsigned long value;
unsigned long value = 0;
advance = SDL_ScanUnsignedLong(text, radix, &value);
text += advance;
if (advance && !suppress) {
Expand Down Expand Up @@ -1240,7 +1240,7 @@ SDL_vsscanf(const char *text, const char *fmt, va_list ap)
break;
case 'p':
{
uintptr_t value;
uintptr_t value = 0;
advance = SDL_ScanUintPtrT(text, 16, &value);
text += advance;
if (advance && !suppress) {
Expand Down

0 comments on commit c1fd0fb

Please sign in to comment.