break;
}
- if ( (int)l >= nslots )
+ const int n = static_cast<int>(l);
+ if ( n >= nslots )
{
ReportParamError
(
(
"invalid %s index %d: must be less than %d",
rows ? "row" : "column",
- l,
+ n,
nslots
)
);
}
if (rows)
- sizer->AddGrowableRow(l);
+ sizer->AddGrowableRow(n);
else
- sizer->AddGrowableCol(l);
+ sizer->AddGrowableCol(n);
}
}