Skip to content

Commit ededb30

Browse files
authored
fix: Change type signature of try_get_string in locale.rs (#1486)
The type of the pointer from libc may change depending on the target architecture. Pass the libc type instead.
1 parent ecd03de commit ededb30

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sdl2/locale.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ unsafe fn get_locale(ptr: *const sys::SDL_Locale) -> Option<Locale> {
8383
})
8484
}
8585

86-
unsafe fn try_get_string(ptr: *const i8) -> Option<String> {
86+
unsafe fn try_get_string(ptr: *const libc::c_char) -> Option<String> {
8787
if ptr.is_null() {
8888
None
8989
} else {

0 commit comments

Comments
 (0)