mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-05 14:37:08 +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
|
|
@ -324,7 +324,7 @@ u32 cellGcmGetTiledPitchSize(u32 size)
|
|||
{
|
||||
cellGcmSys.trace("cellGcmGetTiledPitchSize(size=%d)", size);
|
||||
|
||||
for (size_t i = 0; i < sizeof(tiled_pitches) / sizeof(tiled_pitches[0]) - 1; i++) {
|
||||
for (size_t i = 0; i < std::size(tiled_pitches) - 1; i++) {
|
||||
if (tiled_pitches[i] < size && size <= tiled_pitches[i + 1]) {
|
||||
return tiled_pitches[i + 1];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue