From 18995c3bb0fd1b94316424dc35fb6eba3aa1646a Mon Sep 17 00:00:00 2001 From: ruki Date: Sun, 8 May 2022 20:27:04 +0800 Subject: fix check --- core/src/xmake/lz4/block_decompress.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/xmake/lz4/block_decompress.c b/core/src/xmake/lz4/block_decompress.c index 144400521..c8c75adf2 100644 --- a/core/src/xmake/lz4/block_decompress.c +++ b/core/src/xmake/lz4/block_decompress.c @@ -52,7 +52,7 @@ tb_int_t xm_lz4_block_decompress(lua_State* lua) // get real size tb_int_t real = (tb_int_t)lua_tointeger(lua, 3); - if (real > 0) + if (real <= 0) { lua_pushnil(lua); lua_pushfstring(lua, "invalid output size(%d)!", real); -- cgit v1.3.1