mirror of
https://github.com/introlab/rtabmap.git
synced 2026-10-12 21:09:50 +08:00
Fixed compilation warnings
This commit is contained in:
@@ -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];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user