Commit a905db9d65dac2b72b794ef417d56e5dea5a152c

Anonymous Maarten 2022-10-05T23:59:01

testcustomcursor: fix Wswitch warning by casting the arg to an int

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/test/testcustomcursor.c b/test/testcustomcursor.c
index 698d31f..b3ffdbc 100644
--- a/test/testcustomcursor.c
+++ b/test/testcustomcursor.c
@@ -169,7 +169,7 @@ loop()
 
                 SDL_SetCursor(cursors[current_cursor]);
 
-                switch (cursor_types[current_cursor]) {
+                switch ((int)cursor_types[current_cursor]) {
                     case (SDL_SystemCursor)-1:        SDL_Log("Custom cursor"); break;
                     case SDL_SYSTEM_CURSOR_ARROW:     SDL_Log("Arrow"); break;
                     case SDL_SYSTEM_CURSOR_IBEAM:     SDL_Log("I-beam"); break;