Skip to content

Commit

Permalink
Fixed pointer signedness warning
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Oct 12, 2016
1 parent 3b3dd9a commit cfb24c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/windows/SDL_windows.c
Expand Up @@ -162,7 +162,7 @@ WIN_LookupAudioDeviceName(const WCHAR *name, const GUID *guid)
return WIN_StringToUTF8(name); /* No GUID, go with what we've got. */
}

ptr = (const char *) guid;
ptr = (const unsigned char *) guid;
SDL_snprintf(keystr, sizeof (keystr),
"System\\CurrentControlSet\\Control\\MediaCategories\\{%02X%02X%02X%02X-%02X%02X-%02X%02X-%02X%02X-%02X%02X%02X%02X%02X%02X}",
ptr[3], ptr[2], ptr[1], ptr[0], ptr[5], ptr[4], ptr[7], ptr[6],
Expand Down

0 comments on commit cfb24c7

Please sign in to comment.