diff options
author | dundargoc <33953936+dundargoc@users.noreply.github.com> | 2021-10-06 16:47:31 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-06 07:47:31 -0700 |
commit | d0c0878b3e8b2d2b80fa56038caea1f69c5d5499 (patch) | |
tree | 1a6487eb6a80d323197bf0ac2b12caed8e788bb7 | |
parent | 45b9815fc1b23e19e5c5a9893702f0a79b3dfabd (diff) | |
download | rneovim-d0c0878b3e8b2d2b80fa56038caea1f69c5d5499.tar.gz rneovim-d0c0878b3e8b2d2b80fa56038caea1f69c5d5499.tar.bz2 rneovim-d0c0878b3e8b2d2b80fa56038caea1f69c5d5499.zip |
fix(PVS/V1048): "variable was assigned the same value" #15870
-rw-r--r-- | src/mpack/conv.c | 1 | ||||
-rw-r--r-- | src/mpack/lmpack.c | 2 |
2 files changed, 0 insertions, 3 deletions
diff --git a/src/mpack/conv.c b/src/mpack/conv.c index 31297a8784..6bd446ca49 100644 --- a/src/mpack/conv.c +++ b/src/mpack/conv.c @@ -301,7 +301,6 @@ MPACK_API double mpack_unpack_number(mpack_token_t t) */ if (!hi) { assert(t.length <= 4); - hi = 0; lo = (~lo & (((mpack_uint32_t)1 << ((t.length * 8) - 1)) - 1)); } else { hi = ~hi; diff --git a/src/mpack/lmpack.c b/src/mpack/lmpack.c index 4b0e132a3a..2d6131d7cb 100644 --- a/src/mpack/lmpack.c +++ b/src/mpack/lmpack.c @@ -445,7 +445,6 @@ static int lmpack_unpacker_unpack_str(lua_State *L, Unpacker *unpacker, if (rv == MPACK_NOMEM) { unpacker->parser = lmpack_grow_parser(unpacker->parser); if (!unpacker->parser) { - unpacker->unpacking = 0; return luaL_error(L, "failed to grow Unpacker capacity"); } } @@ -799,7 +798,6 @@ static int lmpack_packer_pack(lua_State *L) if (result == MPACK_NOMEM) { packer->parser = lmpack_grow_parser(packer->parser); if (!packer->parser) { - packer->packing = 0; return luaL_error(L, "Failed to grow Packer capacity"); } } |