Commit ed03452a authored by Cédric Traizet's avatar Cédric Traizet

BUG: fix factorized switch case

parent 4cef0569
......@@ -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:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment