strat: remove sizeof() / sizeof([0])

This commit is contained in:
Michael Scire
2019-07-02 14:36:57 -07:00
committed by SciresM
parent a5da286351
commit c916a7db88
10 changed files with 19 additions and 18 deletions

View File

@@ -79,7 +79,7 @@ namespace sts::pinmux {
static constexpr u32 ExtraIowaPadNames[] = {
0xAA, 0xAC, 0xA2, 0xA3, 0xA4, 0xA5, 0xA6, 0xA7, 0xA8, 0xA9
};
for (size_t i = 0; i < sizeof(ExtraIowaPadNames) / sizeof(ExtraIowaPadNames[0]); i++) {
for (size_t i = 0; i < util::size(ExtraIowaPadNames); i++) {
UpdatePad(ExtraIowaPadNames[i], 0x2000, 0x2000);
}
}