FS-11903: Fix errors reported by PVS-Studio Static Code Analyzer for mod_expr

This commit is contained in:
Andrey Volk 2019-07-12 20:04:13 +04:00
parent 05cc20e636
commit 75a37ba42e
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}
}