Commit 8047ede4 authored by Davis King's avatar Davis King

gcc 3.3 would sometimes cause this code to throw invalid_svm_nu_error

when it shouldn't.  This should now be fixed.

--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%403692
parent 53ab1fd3
...@@ -1251,7 +1251,7 @@ namespace dlib ...@@ -1251,7 +1251,7 @@ namespace dlib
else else
{ {
has_slack = true; has_slack = true;
if (temp > num) if (num_total > num)
{ {
++count; ++count;
alpha(i) = temp - std::floor(temp); alpha(i) = temp - std::floor(temp);
...@@ -1282,7 +1282,7 @@ namespace dlib ...@@ -1282,7 +1282,7 @@ namespace dlib
else else
{ {
has_slack = true; has_slack = true;
if (temp > num) if (num_total > num)
{ {
++count; ++count;
alpha(i) = temp - std::floor(temp); alpha(i) = temp - std::floor(temp);
......
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