mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-04-28 13:28:01 +03:00
static analysis: ensure is always false
This commit is contained in:
parent
a49c4c7682
commit
ca3d02fc61
1 changed files with 2 additions and 2 deletions
|
@ -246,7 +246,7 @@ namespace rsx
|
||||||
return pos;
|
return pos;
|
||||||
}
|
}
|
||||||
|
|
||||||
ensure(_loc < _size);
|
AUDIT(_loc < _size);
|
||||||
|
|
||||||
const auto remaining = (_size - _loc);
|
const auto remaining = (_size - _loc);
|
||||||
memmove(pos + 1, pos, remaining * sizeof(Ty));
|
memmove(pos + 1, pos, remaining * sizeof(Ty));
|
||||||
|
@ -274,7 +274,7 @@ namespace rsx
|
||||||
return pos;
|
return pos;
|
||||||
}
|
}
|
||||||
|
|
||||||
ensure(_loc < _size);
|
AUDIT(_loc < _size);
|
||||||
|
|
||||||
const u32 remaining = (_size - _loc);
|
const u32 remaining = (_size - _loc);
|
||||||
memmove(pos + 1, pos, remaining * sizeof(Ty));
|
memmove(pos + 1, pos, remaining * sizeof(Ty));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue