From 87149fcb0d54c855b92b9695a0fbf542ff7c46a1 Mon Sep 17 00:00:00 2001 From: Truman Kilen Date: Mon, 18 Nov 2024 10:40:32 -0600 Subject: [PATCH] Add transmute annotations --- oodle_loader/src/lib.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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"]) + }) } }