File tree 1 file changed +3
-3
lines changed
android-activity/src/game_activity
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ use std::ffi::{CStr, CString};
4
4
use std:: fs:: File ;
5
5
use std:: io:: { BufRead , BufReader } ;
6
6
use std:: marker:: PhantomData ;
7
- use std:: os:: raw;
7
+ use std:: os:: raw:: { self , c_char } ;
8
8
use std:: ptr:: NonNull ;
9
9
use std:: sync:: Arc ;
10
10
use std:: sync:: RwLock ;
@@ -72,7 +72,7 @@ impl<'a> StateSaver<'a> {
72
72
}
73
73
74
74
( * app_ptr) . savedState = buf;
75
- ( * app_ptr) . savedStateSize = state. len ( ) as u64 ;
75
+ ( * app_ptr) . savedStateSize = state. len ( ) as ffi :: size_t ;
76
76
}
77
77
}
78
78
}
@@ -328,7 +328,7 @@ impl AndroidAppInner {
328
328
}
329
329
}
330
330
331
- fn try_get_path_from_ptr ( path : * const u8 ) -> Option < std:: path:: PathBuf > {
331
+ fn try_get_path_from_ptr ( path : * const c_char ) -> Option < std:: path:: PathBuf > {
332
332
if path == ptr:: null ( ) { return None ; }
333
333
let cstr = unsafe {
334
334
let cstr_slice = CStr :: from_ptr ( path) ;
You can’t perform that action at this time.
0 commit comments