diff --git a/src/cdef.rs b/src/cdef.rs index a768431af..464e94386 100644 --- a/src/cdef.rs +++ b/src/cdef.rs @@ -86,7 +86,7 @@ impl cdef::Fn { let stride = dst.stride(); let left = ptr::from_ref(left).cast(); let top_ptr = top.as_ptr::().cast(); - let bottom_ptr = bottom.as_ptr::().cast(); + let bottom_ptr = bottom.wrapping_as_ptr::().cast(); let top = FFISafe::new(&top); let bottom = FFISafe::new(&bottom); let sec_strength = sec_strength as c_int;