[opengm] 20/386: add missing return value

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Wed Aug 31 08:35:00 UTC 2016


This is an automated email from the git hooks/post-receive script.

ghisvail-guest pushed a commit to branch debian/master
in repository opengm.

commit f100a4bcc5497672970afd5b732d908695d2981e
Author: joergkappes <kappes at math.uni-heidelberg.de>
Date:   Wed Nov 19 15:39:26 2014 +0100

    add missing return value
---
 include/opengm/learning/loss/hammingloss.hxx | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/include/opengm/learning/loss/hammingloss.hxx b/include/opengm/learning/loss/hammingloss.hxx
index 44b99b3..8088526 100644
--- a/include/opengm/learning/loss/hammingloss.hxx
+++ b/include/opengm/learning/loss/hammingloss.hxx
@@ -19,12 +19,13 @@ namespace opengm {
       template<class IT1, class IT2>
       double HammingLoss::loss(IT1 labelBegin, const IT1 labelEnd, IT2 GTBegin, const IT2 GTEnd) const
       {
-         double loss = 0;
+         double loss = 0.0;
          for(; labelBegin!= labelEnd; ++labelBegin, ++GTBegin){
             if(*labelBegin != *GTBegin){
                loss += 1.0;
             }
          }
+         return loss;
       }
 
       template<class GM, class IT>

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/opengm.git



More information about the debian-science-commits mailing list