fixed hundreds of warnings from MSVC 2010.
This commit is contained in:
@@ -201,7 +201,7 @@ string extractModelName( const string& filename )
|
||||
|
||||
const int extentionSize = 4; //.xml
|
||||
|
||||
int substrLength = filename.size() - startPos - extentionSize;
|
||||
int substrLength = (int)(filename.size() - startPos - extentionSize);
|
||||
|
||||
return filename.substr(startPos, substrLength);
|
||||
}
|
||||
|
@@ -66,7 +66,7 @@ static inline int getLabel(int quantized)
|
||||
case 64: return 6;
|
||||
case 128: return 7;
|
||||
default:
|
||||
CV_Assert(false);
|
||||
CV_Error(CV_StsBadArg, "Invalid value of quantized parameter");
|
||||
return -1; //avoid warning
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user