Changed code to avoid compiler warning in gcc.

--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%403370
This commit is contained in:
Davis King 2010-01-08 00:36:00 +00:00
parent 8f26951cc8
commit 63a2468f19
1 changed files with 1 additions and 1 deletions

View File

@ -124,7 +124,7 @@ namespace dlib
// now count how many elements of W are non-zero
const long num_not_zero = sum(W>eps);
const long num_not_zero = static_cast<long>(sum(W>eps));
// Really, this should never happen. But I'm checking for good measure.
if (num_not_zero == 0)