mirror of
https://github.com/neovim/neovim.git
synced 2025-09-21 02:38:19 +00:00
fix(PVS/V1048): "variable was assigned the same value" #15870
This commit is contained in:
@@ -301,7 +301,6 @@ MPACK_API double mpack_unpack_number(mpack_token_t t)
|
|||||||
*/
|
*/
|
||||||
if (!hi) {
|
if (!hi) {
|
||||||
assert(t.length <= 4);
|
assert(t.length <= 4);
|
||||||
hi = 0;
|
|
||||||
lo = (~lo & (((mpack_uint32_t)1 << ((t.length * 8) - 1)) - 1));
|
lo = (~lo & (((mpack_uint32_t)1 << ((t.length * 8) - 1)) - 1));
|
||||||
} else {
|
} else {
|
||||||
hi = ~hi;
|
hi = ~hi;
|
||||||
|
@@ -445,7 +445,6 @@ static int lmpack_unpacker_unpack_str(lua_State *L, Unpacker *unpacker,
|
|||||||
if (rv == MPACK_NOMEM) {
|
if (rv == MPACK_NOMEM) {
|
||||||
unpacker->parser = lmpack_grow_parser(unpacker->parser);
|
unpacker->parser = lmpack_grow_parser(unpacker->parser);
|
||||||
if (!unpacker->parser) {
|
if (!unpacker->parser) {
|
||||||
unpacker->unpacking = 0;
|
|
||||||
return luaL_error(L, "failed to grow Unpacker capacity");
|
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) {
|
if (result == MPACK_NOMEM) {
|
||||||
packer->parser = lmpack_grow_parser(packer->parser);
|
packer->parser = lmpack_grow_parser(packer->parser);
|
||||||
if (!packer->parser) {
|
if (!packer->parser) {
|
||||||
packer->packing = 0;
|
|
||||||
return luaL_error(L, "Failed to grow Packer capacity");
|
return luaL_error(L, "Failed to grow Packer capacity");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user