We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d428467 commit 9e632e5Copy full SHA for 9e632e5
glib/src/gstring.rs
@@ -151,7 +151,7 @@ impl GStr {
151
if ffi::g_utf8_validate(ptr as *const _, -1, &mut end_ptr) != ffi::GFALSE {
152
Some(Self::from_utf8_with_nul_unchecked(slice::from_raw_parts(
153
ptr as *const u8,
154
- end_ptr.offset_from(ptr) as usize + 1,
+ end_ptr.offset_from(ptr as *const u8) as usize + 1,
155
)))
156
} else {
157
None
0 commit comments