From 564c4f6a4523f6530f08134ad85155d45950196c Mon Sep 17 00:00:00 2001 From: spuds <71292624+bananaturtlesandwich@users.noreply.github.com> Date: Wed, 20 Sep 2023 13:23:42 +0100 Subject: [PATCH] make decompress unsafe extern c --- repak/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/repak/src/lib.rs b/repak/src/lib.rs index 9884bfe..34e3ace 100644 --- a/repak/src/lib.rs +++ b/repak/src/lib.rs @@ -10,7 +10,7 @@ pub use {error::*, pak::*}; pub const MAGIC: u32 = 0x5A6F12E1; #[cfg(feature = "oodle")] -pub type DECOMPRESS = fn( +pub type DECOMPRESS = unsafe extern "C" fn( compBuf: *mut u8, compBufSize: usize, rawBuf: *mut u8,