SDL: Use EM_ASM_PTR when the return value is a pointer

From 953b55dd6da1dd9fb937f3c67a18c5cab2988599 Mon Sep 17 00:00:00 2001
From: Jaswant Panchumarti <[EMAIL REDACTED]>
Date: Tue, 19 Sep 2023 10:45:50 -0400
Subject: [PATCH] Use EM_ASM_PTR when the return value is a pointer

- closes https://github.com/libsdl-org/SDL/issues/8241
---
 src/SDL_assert.c                           | 2 +-
 src/video/emscripten/SDL_emscriptenmouse.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/SDL_assert.c b/src/SDL_assert.c
index 744af2e90e19..15e793dd61e4 100644
--- a/src/SDL_assert.c
+++ b/src/SDL_assert.c
@@ -243,7 +243,7 @@ static SDL_AssertState SDLCALL SDL_PromptAssertion(const SDL_AssertData *data, v
         for (;;) {
             SDL_bool okay = SDL_TRUE;
             /* *INDENT-OFF* */ /* clang-format off */
-            char *buf = (char *) EM_ASM_INT({
+            char *buf = (char *) EM_ASM_PTR({
                 var str =
                     UTF8ToString($0) + '\n\n' +
                     'Abort/Retry/Ignore/AlwaysIgnore? [ariA] :';
diff --git a/src/video/emscripten/SDL_emscriptenmouse.c b/src/video/emscripten/SDL_emscriptenmouse.c
index 0cc3ec41c111..678f6c3fc6c1 100644
--- a/src/video/emscripten/SDL_emscriptenmouse.c
+++ b/src/video/emscripten/SDL_emscriptenmouse.c
@@ -74,7 +74,7 @@ static SDL_Cursor *Emscripten_CreateCursor(SDL_Surface *surface, int hot_x, int
     }
 
     /* *INDENT-OFF* */ /* clang-format off */
-    cursor_url = (const char *)MAIN_THREAD_EM_ASM_INT({
+    cursor_url = (const char *)MAIN_THREAD_EM_ASM_PTR({
         var w = $0;
         var h = $1;
         var hot_x = $2;