From a641da3a8d976bfca0e5a92a57e603d31fc50505 Mon Sep 17 00:00:00 2001 From: Josh Klontz Date: Wed, 14 Dec 2016 14:32:06 -0700 Subject: [PATCH] msvc compile fix --- openbr/plugins/metadata/majorityvoting.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openbr/plugins/metadata/majorityvoting.cpp b/openbr/plugins/metadata/majorityvoting.cpp index 8e70417..2448156 100644 --- a/openbr/plugins/metadata/majorityvoting.cpp +++ b/openbr/plugins/metadata/majorityvoting.cpp @@ -58,7 +58,7 @@ class MajorityVotingTransform : public UntrainableMetadataTransform } QVector classCount(numClasses, 0); for (int c = 0; c < scores.size(); c+= numClasses){ - if(numClasses == 2 and thresh != -1){ + if ((numClasses == 2) && (thresh != -1)){ if (scores[c] > thresh) classCount[0]++; else -- libgit2 0.21.4