compiler: use addr_of!

This commit is contained in:
Pavel Grigorenko 2024-02-24 16:47:34 +03:00
parent ff187a92d8
commit 613cb3262d
No known key found for this signature in database
GPG key ID: 52BFCC6ED389F777
7 changed files with 9 additions and 9 deletions

View file

@ -435,7 +435,7 @@ pub(crate) fn print(req: &PrintRequest, mut out: &mut dyn PrintBackendInfo, sess
&tm,
cpu_cstring.as_ptr(),
callback,
&mut out as *mut &mut dyn PrintBackendInfo as *mut c_void,
std::ptr::addr_of_mut!(out) as *mut c_void,
);
}
}