Skip to content

Commit 97340fe

Browse files
committed
fix cross compilation
1 parent 74bb014 commit 97340fe

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sugarloaf/src/font/linux.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ unsafe fn pattern_path_and_index(pattern: *mut fc::FcPattern) -> Option<(PathBuf
200200
if res != fc::FcResultMatch || file_ptr.is_null() {
201201
return None;
202202
}
203-
let path_str = CStr::from_ptr(file_ptr as *const i8)
203+
let path_str = CStr::from_ptr(file_ptr as *const std::ffi::c_char)
204204
.to_str()
205205
.ok()?
206206
.to_string();

0 commit comments

Comments
 (0)