mirror of
https://github.com/introlab/rtabmap.git
synced 2026-10-04 00:57:46 +08:00
Fixed some warnings on VisualStudio2010
This commit is contained in:
@@ -1016,7 +1016,7 @@ void Memory::clear()
|
||||
// Save some stats to the db, save only when the mem is not empty
|
||||
if(_dbDriver && (_stMem.size() || _workingMem.size()))
|
||||
{
|
||||
unsigned int memSize = _workingMem.size() + _stMem.size();
|
||||
unsigned int memSize = (unsigned int)(_workingMem.size() + _stMem.size());
|
||||
if(_workingMem.size() && _workingMem.begin()->first < 0)
|
||||
{
|
||||
--memSize;
|
||||
@@ -1863,7 +1863,7 @@ Transform Memory::computeVisualTransform(
|
||||
true, 3.0, 10,
|
||||
&inliersV,
|
||||
variance);
|
||||
inliersCount = inliersV.size();
|
||||
inliersCount = (int)inliersV.size();
|
||||
if(!t.isNull() && inliersCount >= _bowMinInliers)
|
||||
{
|
||||
transform = t;
|
||||
|
||||
Reference in New Issue
Block a user