mirror of https://github.com/davisking/dlib.git
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:
parent
8f26951cc8
commit
63a2468f19
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue