diff --git a/Modules/Applications/AppClassification/include/otbVectorPrediction.hxx b/Modules/Applications/AppClassification/include/otbVectorPrediction.hxx
index 4d84e9e0fc01d4f70c93fbc3deed4629f9115cda..00f1de167ed04f51f08f611e685f23498a203b0f 100644
--- a/Modules/Applications/AppClassification/include/otbVectorPrediction.hxx
+++ b/Modules/Applications/AppClassification/include/otbVectorPrediction.hxx
@@ -99,7 +99,8 @@ void           VectorPrediction<RegressionMode>::DoExecute()
       auto field = feature[fieldName];
       switch (field.GetType())
       {
-      case OFTInteger || OFTInteger64:
+      case OFTInteger:
+      case OFTInteger64:
         mv[idx] = static_cast<ValueType>(field.template GetValue<int>());
         break;
       case OFTReal:
@@ -257,7 +258,8 @@ void           VectorPrediction<RegressionMode>::DoExecute()
     auto field = dstFeature[classfieldname];
     switch (field.GetType())
     {
-    case OFTInteger || OFTInteger64:
+    case OFTInteger64:
+    case OFTInteger:
       field.template SetValue<int>(target->GetMeasurementVector(count)[0]);
       break;
     case OFTReal: