Add transmute annotations

This commit is contained in:
Truman Kilen 2024-11-18 10:40:32 -06:00
parent 56a36e553e
commit 87149fcb0d

View file

@ -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"])
})
}
}