c++17: use std::size

This commit is contained in:
scribam 2018-09-05 22:52:31 +02:00 committed by Ivan
parent 7724161c14
commit d7bb59cd99
11 changed files with 21 additions and 21 deletions

View file

@ -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];
}