mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-04 14:08:37 +00:00
c++17: use std::size
This commit is contained in:
parent
7724161c14
commit
d7bb59cd99
11 changed files with 21 additions and 21 deletions
|
|
@ -514,7 +514,7 @@ public:
|
|||
if (task.stream.discontinuity)
|
||||
{
|
||||
cellDmux.warning("dmuxSetStream (beginning)");
|
||||
for (u32 i = 0; i < sizeof(esALL) / sizeof(esALL[0]); i++)
|
||||
for (u32 i = 0; i < std::size(esALL); i++)
|
||||
{
|
||||
if (esALL[i])
|
||||
{
|
||||
|
|
@ -595,7 +595,7 @@ public:
|
|||
fmt::throw_exception("dmuxDisableEs: invalid elementary stream" HERE);
|
||||
}
|
||||
|
||||
for (u32 i = 0; i < sizeof(esALL) / sizeof(esALL[0]); i++)
|
||||
for (u32 i = 0; i < std::size(esALL); i++)
|
||||
{
|
||||
if (esALL[i] == &es)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue