summaryrefslogtreecommitdiff
path: root/core/src
diff options
context:
space:
mode:
authorruki <[email protected]>2023-01-21 11:16:41 +0800
committerGitHub <[email protected]>2023-01-21 11:16:41 +0800
commit18f00253bb8be734d7d98957ce85d8f64b520c30 (patch)
treee053d5b415114089d668b40834530e2ea80aa515 /core/src
parent5c21831f0efe448bed7cafd39f4ed036bd9890a8 (diff)
Update block_decompress.c
Diffstat (limited to 'core/src')
-rw-r--r--core/src/xmake/lz4/block_decompress.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/xmake/lz4/block_decompress.c b/core/src/xmake/lz4/block_decompress.c
index ed5f35a06..c8c75adf2 100644
--- a/core/src/xmake/lz4/block_decompress.c
+++ b/core/src/xmake/lz4/block_decompress.c
@@ -68,7 +68,7 @@ tb_int_t xm_lz4_block_decompress(lua_State* lua)
output_data = real <= sizeof(buffer)? buffer : (tb_byte_t*)tb_malloc(real);
tb_assert_and_check_break(output_data);
- tb_int_t r = LZ4_decompress_safe((tb_char_t const*)data, (tb_char_t*)output_data, real, real);
+ tb_int_t r = LZ4_decompress_fast((tb_char_t const*)data, (tb_char_t*)output_data, real);
tb_assert_and_check_break(r > 0);
lua_pushlstring(lua, (tb_char_t const*)output_data, real);