You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// If calculating the layout of a grid item in this step depends on the available space in the block axis, assume the available space that it would have if any row with a definite max track sizing function had that size and all other rows were infinite.
1323
1323
if (dimension == Dimension::Width) {
1324
-
for (size_t i = item.columnStart; i < item.columnEnd && i < columnTracks.size(); i++) {
1324
+
for (size_t i = item.columnStart; i < static_cast<size_t>(item.columnEnd) && i < columnTracks.size(); i++) {
1325
1325
if (isFixedSizingFunction(columnTracks[i].maxSizingFunction, containerInnerWidth)) {
if (i < static_cast<size_t>(item.columnEnd - 1)) {
1328
1328
containingBlockWidth += columnGap;
1329
1329
}
1330
1330
} else {
@@ -1336,9 +1336,9 @@ struct TrackSizing {
1336
1336
// In trackSizing rowTracks
1337
1337
// To find the inline-axis available space for any items whose block-axis size contributions require it, use the grid column sizes calculated in the previous step. If the grid container’s inline size is definite, also apply justify-content to account for the effective column gap sizes.
1338
1338
elseif (dimension == Dimension::Height) {
1339
-
for (size_t i = item.columnStart; i < item.columnEnd && i < columnTracks.size(); i++) {
1339
+
for (size_t i = item.columnStart; i < static_cast<size_t>(item.columnEnd) && i < columnTracks.size(); i++) {
1340
1340
containingBlockWidth += columnTracks[i].baseSize;
1341
-
if (i < item.columnEnd - 1) {
1341
+
if (i < static_cast<size_t>(item.columnEnd - 1)) {
0 commit comments