Skip to content
Snippets Groups Projects
Commit ed03452a authored by Cédric Traizet's avatar Cédric Traizet
Browse files

BUG: fix factorized switch case

parent 4cef0569
No related branches found
No related tags found
3 merge requests!648Ci rcjob,!621Release 7.0 (master),!565Application VectorRegression
......@@ -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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment