sdl2-compat: work-around a strict-aliasing warning

From b43c7a9985d87d0bc16202a06082f6b265760ddf Mon Sep 17 00:00:00 2001
From: Ozkan Sezer <[EMAIL REDACTED]>
Date: Tue, 2 Apr 2024 05:56:24 +0300
Subject: [PATCH] work-around a strict-aliasing warning

---
 src/sdl2_compat.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/sdl2_compat.c b/src/sdl2_compat.c
index f5cb2bb..c457142 100644
--- a/src/sdl2_compat.c
+++ b/src/sdl2_compat.c
@@ -6232,9 +6232,9 @@ SDL_CreateWindowFrom(const void *data)
         /* This hint is a pointer (in string form) of the address of
            the window to share a pixel format with
         */
-        SDL_Window *otherWindow = NULL;
-        (void)SDL3_sscanf(hint, "%p", (void **)&otherWindow);
-        SDL3_SetProperty(props, SDL_PROP_WINDOW_CREATE_WIN32_PIXEL_FORMAT_HWND_POINTER, SDL3_GetProperty(SDL3_GetWindowProperties(otherWindow), SDL_PROP_WINDOW_WIN32_HWND_POINTER, NULL));
+        void *otherWindow = NULL; /* SDL_Window* */
+        (void)SDL3_sscanf(hint, "%p", &otherWindow);
+        SDL3_SetProperty(props, SDL_PROP_WINDOW_CREATE_WIN32_PIXEL_FORMAT_HWND_POINTER, SDL3_GetProperty(SDL3_GetWindowProperties((SDL_Window *)otherWindow), SDL_PROP_WINDOW_WIN32_HWND_POINTER, NULL));
         SDL3_SetBooleanProperty(props, SDL_PROP_WINDOW_CREATE_OPENGL_BOOLEAN, SDL_TRUE);
     }