Skip to content

Commit

Permalink
fix: do not hardcode string pointer types (Aloxaf#210)
Browse files Browse the repository at this point in the history
  • Loading branch information
thunder-coding authored Oct 15, 2022
1 parent 447c456 commit f666c95
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/hb_wrapper.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ pub fn feature_from_tag(tag: &str) -> Result<hb_feature_t> {
let mut feature = mem::zeroed();
ensure!(
hb_feature_from_string(
tag.as_ptr() as *const i8,
tag.as_ptr() as *const ::std::os::raw::c_char,
tag.len() as i32,
&mut feature as *mut _
) != 0,
Expand Down Expand Up @@ -88,7 +88,7 @@ impl HBBuffer {
unsafe {
hb_buffer_add_utf8(
self.buffer,
s.as_ptr() as *const i8,
s.as_ptr() as *const ::std::os::raw::c_char,
s.len() as i32,
0,
s.len() as i32,
Expand Down

0 comments on commit f666c95

Please sign in to comment.