From 63a2468f193ebc657a292a5036468564342ee0d2 Mon Sep 17 00:00:00 2001 From: Davis King Date: Fri, 8 Jan 2010 00:36:00 +0000 Subject: [PATCH] Changed code to avoid compiler warning in gcc. --HG-- extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%403370 --- dlib/svm/empirical_kernel_map.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlib/svm/empirical_kernel_map.h b/dlib/svm/empirical_kernel_map.h index f371d934d..f26fa34ff 100644 --- a/dlib/svm/empirical_kernel_map.h +++ b/dlib/svm/empirical_kernel_map.h @@ -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(sum(W>eps)); // Really, this should never happen. But I'm checking for good measure. if (num_not_zero == 0)