expand_mmac_params_range: Simplify condition
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
This commit is contained in:
parent
c57eb51527
commit
2f40375077
1 changed files with 2 additions and 4 deletions
|
@ -3617,10 +3617,8 @@ static Token *expand_mmac_params_range(MMacro *mac, Token *tline, Token ***last)
|
|||
goto err;
|
||||
|
||||
/* the values should be sane */
|
||||
if ((fst > 0 && fst > mac->nparam) ||
|
||||
(fst < 0 && fst < -(int)mac->nparam) ||
|
||||
(lst > 0 && lst > mac->nparam) ||
|
||||
(lst < 0 && lst < -(int)mac->nparam))
|
||||
if ((fst > (int)mac->nparam || fst < (-(int)mac->nparam)) ||
|
||||
(lst > (int)mac->nparam || lst < (-(int)mac->nparam)))
|
||||
goto err;
|
||||
|
||||
fst = fst < 0 ? fst + mac->nparam + 1: fst;
|
||||
|
|
Loading…
Reference in a new issue