mirror of
https://github.com/introlab/rtabmap_ros.git
synced 2026-10-04 00:37:46 +08:00
Fixed warnings on Windows
This commit is contained in:
@@ -614,10 +614,10 @@ inline bool uIsDigit(const char c)
|
||||
*/
|
||||
inline bool uIsInteger(const std::string & str)
|
||||
{
|
||||
bool isInteger = str.size();
|
||||
bool isInteger = str.size()!=0;
|
||||
for(unsigned int i=0; i<str.size() && isInteger; ++i)
|
||||
{
|
||||
isInteger = isdigit(str[i]);
|
||||
isInteger = uIsDigit(str[i]);
|
||||
}
|
||||
return isInteger;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user