diff --git a/oodle_loader/src/lib.rs b/oodle_loader/src/lib.rs index b9a9794..2803770 100644 --- a/oodle_loader/src/lib.rs +++ b/oodle_loader/src/lib.rs @@ -398,7 +398,8 @@ mod linux_oodle { } } - // Break things! - Ok(unsafe { std::mem::transmute(exports["OodleLZ_Decompress"]) }) + Ok(unsafe { + std::mem::transmute::<*const c_void, OodleLZ_Decompress>(exports["OodleLZ_Decompress"]) + }) } }