mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-08-05 15:49:20 +00:00
static analysis: ensure is always false
This commit is contained in:
parent
f4c4163d98
commit
9b4fdd5288
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