FS-11903: Fix errors reported by PVS-Studio Static Code Analyzer for mod_expr
This commit is contained in:
parent
05cc20e636
commit
75a37ba42e
|
@ -73,7 +73,7 @@ int exprFuncListAdd(exprFuncList * flist, char *name, exprFuncType ptr, int min,
|
|||
if (refmin >= 0 && refmax >= 0) {
|
||||
if (refmin > refmax) {
|
||||
result = refmin;
|
||||
refmin = max;
|
||||
refmin = refmax;
|
||||
refmax = result;
|
||||
}
|
||||
}
|
||||
|
@ -148,7 +148,7 @@ int exprFuncListAddType(exprFuncList * flist, char *name, int type, int min, int
|
|||
if (refmin >= 0 && refmax >= 0) {
|
||||
if (refmin > refmax) {
|
||||
result = refmin;
|
||||
refmin = max;
|
||||
refmin = refmax;
|
||||
refmax = result;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue