Fixed compilation warnings

This commit is contained in:
matlabbe
2022-01-16 15:27:52 -05:00
parent 9622fe8393
commit 7a5c50cb0e
4 changed files with 15 additions and 6 deletions
+2 -2
View File
@@ -368,8 +368,8 @@ LaserScan LaserScan::clone() const
float & LaserScan::field(unsigned int pointIndex, unsigned int channelOffset)
{
UASSERT(pointIndex < data_.cols);
UASSERT(channelOffset < data_.channels());
UASSERT(pointIndex < (unsigned int)data_.cols);
UASSERT(channelOffset < (unsigned int)data_.channels());
return data_.ptr<float>(0, pointIndex)[channelOffset];
}