Fixed gcc build warning

pull/13/merge
Andrey Kamaev 12 years ago
parent d8b69d750d
commit 4a1ef53deb
  1. 2
      modules/objdetect/src/hog.cpp

@ -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…
Cancel
Save