fixed warnings under win32

This commit is contained in:
Maria Dimashova
2010-11-26 10:35:48 +00:00
parent 337f1dd2fa
commit dfe4af9e1d
6 changed files with 32 additions and 32 deletions

View File

@@ -961,7 +961,7 @@ float RTreeClassifier::countZeroElements()
float *p = trees_[i].getPosteriorByIndex(k);
uchar *p2 = trees_[i].getPosteriorByIndex2(k);
assert(p); assert(p2);
for (int j=0; j<num_elem; ++j, ++p, ++p2) {
for (int j=0; j<(int)num_elem; ++j, ++p, ++p2) {
if (*p == 0.f) flt_zeros++;
if (*p2 == 0) ui8_zeros++;
}