Fixed gcc build warning
This commit is contained in:
parent
d8b69d750d
commit
4a1ef53deb
@ -2601,7 +2601,7 @@ void HOGDescriptor::readALTModel(std::string modelfile)
|
||||
double *linearwt = new double[totwords+1];
|
||||
int length = totwords;
|
||||
nread = fread(linearwt, sizeof(double), totwords + 1, modelfl);
|
||||
if(nread != length + 1)
|
||||
if(nread != static_cast<size_t>(length) + 1)
|
||||
throw Exception();
|
||||
|
||||
for(int i = 0; i < length; i++)
|
||||
|
Loading…
Reference in New Issue
Block a user