Commit 4a1ef53d authored by Andrey Kamaev's avatar Andrey Kamaev

Fixed gcc build warning

parent d8b69d75
......@@ -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++)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment