瀏覽代碼

Fix SDL3 compilation error with gcc

Jan Beukes 1 月之前
父節點
當前提交
8772b0287c
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/platforms/rcore_desktop_sdl.c

+ 1 - 1
src/platforms/rcore_desktop_sdl.c

@@ -1621,7 +1621,7 @@ void PollInputEvents(void)
                 {
                     // Add character (codepoint) to the queue
                     #if defined(PLATFORM_DESKTOP_SDL3)
-                    unsigned int textLen = strlen(event.text.text);
+                    size_t textLen = strlen(event.text.text);
                     unsigned int codepoint = (unsigned int)SDL_StepUTF8(&event.text.text, &textLen);
                     #else
                     int codepointSize = 0;