Skip to content

Commit

Permalink
Merge pull request #1026 from mbiggio/wip/biggio/fix-strv-ptr-master
Browse files Browse the repository at this point in the history
strv: when calling g_strv ffi method, use our `as_ptr` implementation
  • Loading branch information
sdroege authored Feb 22, 2023
2 parents 37a40ed + 74513ab commit 5501aa4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions glib/src/collections/strv.rs
Original file line number Diff line number Diff line change
Expand Up @@ -860,7 +860,7 @@ impl StrV {
separator.run_with_gstr(|separator| unsafe {
from_glib_full(ffi::g_strjoinv(
separator.to_glib_none().0,
self.ptr.as_ptr(),
self.as_ptr() as *mut _,
))
})
}
Expand All @@ -872,7 +872,7 @@ impl StrV {
pub fn contains(&self, s: impl IntoGStr) -> bool {
s.run_with_gstr(|s| unsafe {
from_glib(ffi::g_strv_contains(
self.ptr.as_ptr() as *const _,
self.as_ptr() as *const _,
s.to_glib_none().0,
))
})
Expand Down

0 comments on commit 5501aa4

Please sign in to comment.