diff options
| author | ruki <[email protected]> | 2022-05-08 20:27:04 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2022-05-08 20:27:04 +0800 |
| commit | 18995c3bb0fd1b94316424dc35fb6eba3aa1646a (patch) | |
| tree | 184dc2c1434ada3a1b92041545df9a8d7ce9c3db /core | |
| parent | 0c2e5dd8dee21210f800af3196e219fb1296c687 (diff) | |
fix check
Diffstat (limited to 'core')
| -rw-r--r-- | core/src/xmake/lz4/block_decompress.c | 2 |
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 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); |
