From bd4a7d28d0ae0c1affd7d79d7bd51b983bc08c7a Mon Sep 17 00:00:00 2001 From: abnormalmaps Date: Tue, 1 Apr 2025 19:38:54 -0400 Subject: [PATCH] Fix LocaleIterator for platforms where c_char is u8 --- src/sdl2/locale.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sdl2/locale.rs b/src/sdl2/locale.rs index d879d7608d..64e1490ec6 100644 --- a/src/sdl2/locale.rs +++ b/src/sdl2/locale.rs @@ -83,7 +83,7 @@ unsafe fn get_locale(ptr: *const sys::SDL_Locale) -> Option { }) } -unsafe fn try_get_string(ptr: *const i8) -> Option { +unsafe fn try_get_string(ptr: *const libc::c_char) -> Option { if ptr.is_null() { None } else {