Skip to content

Commit 5a7bc64

Browse files
committed
Fix types
1 parent 114e249 commit 5a7bc64

File tree

1 file changed

+3
-3
lines changed
  • android-activity/src/game_activity

1 file changed

+3
-3
lines changed

android-activity/src/game_activity/mod.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use std::ffi::{CStr, CString};
44
use std::fs::File;
55
use std::io::{BufRead, BufReader};
66
use std::marker::PhantomData;
7-
use std::os::raw;
7+
use std::os::raw::{self, c_char};
88
use std::ptr::NonNull;
99
use std::sync::Arc;
1010
use std::sync::RwLock;
@@ -72,7 +72,7 @@ impl<'a> StateSaver<'a> {
7272
}
7373

7474
(*app_ptr).savedState = buf;
75-
(*app_ptr).savedStateSize = state.len() as u64;
75+
(*app_ptr).savedStateSize = state.len() as ffi::size_t;
7676
}
7777
}
7878
}
@@ -328,7 +328,7 @@ impl AndroidAppInner {
328328
}
329329
}
330330

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> {
332332
if path == ptr::null() { return None; }
333333
let cstr = unsafe {
334334
let cstr_slice = CStr::from_ptr(path);

0 commit comments

Comments
 (0)