Fixed 4 broken ml tests.

pull/13383/head
Andrey Kamaev 13 years ago
parent 2619221331
commit 5c7e8d775c
  1. 2
      modules/ml/src/data.cpp

@ -217,7 +217,7 @@ int CvMLData::read_csv(const char* filename)
str_to_flt_elem( token, el_ptr[cols_count-1], type);
var_types_ptr[cols_count-1] |= type;
cvSeqPush( seq, el_ptr );
if( !fgets_chomp( buf, M, file ) )
if( !fgets_chomp( buf, M, file ) || !strchr( buf, delimiter ) )
break;
}
fclose(file);

Loading…
Cancel
Save