- rowIdx = nextRowIdx - gridWidth + 1;
- nextRowIdx = rowIdx + gridWidth + 1;
- for(int x = 0; x < gridWidth; ++x, ++nextRowIdx, ++rowIdx)
+ rowIdx = nextRowIdx - gridWidth + 1u;
+ nextRowIdx = rowIdx + gridWidth + 1u;
+ for(uint16_t x = 0u; x < gridWidth; ++x, ++nextRowIdx, ++rowIdx)