Skip to content
Snippets Groups Projects
Commit a8e33bb7 authored by Oliver Heidmann's avatar Oliver Heidmann Committed by Uwe Schulzweida
Browse files

Fixed compare type being overwritten by default compare type

parent 4c8e3507
No related branches found
No related tags found
1 merge request!135fixed unintended usage of operator f2 variable
Pipeline #46197 failed
......@@ -807,13 +807,14 @@ public:
ETCCDI_TN10P = cdo_operator_add("etccdi_tn10p", func_selle, CMP_DATE, nullptr);
cdo_operator_add("etccdi", 0, CMP_DATE, nullptr);
if (cdo_operator_argc() == 4 && 'm' == cdo_operator_argv(3)[0]) { request.compare_type = CMP_MONTH; }
request.ndates = parameter_to_int(cdo_operator_argv(0));
request.startboot = parameter_to_int(cdo_operator_argv(1));
const auto operatorID = cdo_operator_id();
request.compare_type = cdo_operator_f2(cdo_operator_id());
if (cdo_operator_argc() == 4 && 'm' == cdo_operator_argv(3)[0]) { request.compare_type = CMP_MONTH; }
if (operatorID == ETCCDI_TX90P || operatorID == ETCCDI_TN90P || operatorID == ETCCDI_R95P || operatorID == ETCCDI_R99P)
{
......
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