Make code a little more efficient

This commit is contained in:
Holger Vogt 2023-03-18 22:28:32 +01:00
parent 7af6c4a661
commit 3996d27b29
1 changed files with 3 additions and 3 deletions

View File

@ -5106,11 +5106,11 @@ static int inp_split_multi_param_lines(struct card *card, int line_num)
break;
if (*end_param == '{')
++expression_depth;
if (*end_param == '(')
else if (*end_param == '(')
++paren_depth;
if (*end_param == '}' && expression_depth > 0)
else if (*end_param == '}' && expression_depth > 0)
--expression_depth;
if (*end_param == ')' && paren_depth > 0)
else if (*end_param == ')' && paren_depth > 0)
--paren_depth;
end_param++;
}