Commit ae48b2eb authored by Davis King's avatar Davis King

Minor change to avoid a compiler error in gcc 4.1.2.

parent 2a8cb5b3
...@@ -68,7 +68,7 @@ namespace dlib ...@@ -68,7 +68,7 @@ namespace dlib
std::map<unsigned long,unsigned long> class_labels = impl::make_class_labels(row_labels); std::map<unsigned long,unsigned long> class_labels = impl::make_class_labels(row_labels);
// LDA can only give out at most class_labels.size()-1 dimensions so don't try to // LDA can only give out at most class_labels.size()-1 dimensions so don't try to
// compute more than that. // compute more than that.
lda_dims = std::min(lda_dims, class_labels.size()-1); lda_dims = std::min<unsigned long>(lda_dims, class_labels.size()-1);
// make sure requires clause is not broken // make sure requires clause is not broken
DLIB_CASSERT(class_labels.size() > 1, DLIB_CASSERT(class_labels.size() > 1,
......
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