Commit cfb24c7673de98d6c3a3af42fd1bfb2276cd55b2

Sam Lantinga 2016-10-12T00:01:17

Fixed pointer signedness warning

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/core/windows/SDL_windows.c b/src/core/windows/SDL_windows.c
index 34c9a93..6433fe2 100644
--- a/src/core/windows/SDL_windows.c
+++ b/src/core/windows/SDL_windows.c
@@ -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],