This commit is contained in:
Davis King 2015-01-20 22:43:42 -05:00
commit 9712692898
1 changed files with 2 additions and 2 deletions

View File

@ -78,7 +78,7 @@ namespace dlib
if (is_matrix<feature_vector_type>::value) if (is_matrix<feature_vector_type>::value)
{ {
DLIB_CASSERT(psi.size() == (unsigned long)prob->get_num_dimensions(), DLIB_CASSERT((long)psi.size() == prob->get_num_dimensions(),
"The dimensionality of your PSI vector doesn't match get_num_dimensions()"); "The dimensionality of your PSI vector doesn't match get_num_dimensions()");
} }
} }
@ -136,7 +136,7 @@ namespace dlib
prob->separation_oracle(sample_idx, current_solution, out_loss, out_psi); prob->separation_oracle(sample_idx, current_solution, out_loss, out_psi);
if (is_matrix<feature_vector_type>::value) if (is_matrix<feature_vector_type>::value)
{ {
DLIB_CASSERT(out_psi.size() == (unsigned long)prob->get_num_dimensions(), DLIB_CASSERT((long)out_psi.size() == prob->get_num_dimensions(),
"The dimensionality of your PSI vector doesn't match get_num_dimensions()"); "The dimensionality of your PSI vector doesn't match get_num_dimensions()");
} }