Преглед на файлове

Merge pull request #5119 from jan-beukes/master

Fix SDL3 compilation error with gcc
Ray преди 1 месец
родител
ревизия
b1f6ab38b5
променени са 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;