Added value range assertions to prevent static analysis false-positives on Clang.
parent
e9b1754306
commit
c8428fa67a
|
@ -548,6 +548,10 @@ private:
|
||||||
ai_assert(false);
|
ai_assert(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ai_assert((order[0] >= 0) && (order[0] <= 2));
|
||||||
|
ai_assert((order[1] >= 0) && (order[1] <= 2));
|
||||||
|
ai_assert((order[2] >= 0) && (order[2] <= 2));
|
||||||
|
|
||||||
if(!is_id[order[0]]) {
|
if(!is_id[order[0]]) {
|
||||||
out = temp[order[0]];
|
out = temp[order[0]];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue