misc/coverity_model.c
author Wuzzy <Wuzzy2@mail.ru>
Wed, 11 Jul 2018 18:13:52 +0200
changeset 13478 d3209e0caf12
parent 10498 bcd1d7ad2f3e
permissions -rw-r--r--
Fix aihDoesntMatter still being attacked with air attack The calculation in TestBazooka created a sum of numbers which might have been BadTurn, a huge negative number, thus creating an overflow.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
10498
bcd1d7ad2f3e Model file for coverity checks
unc0rr
parents:
diff changeset
     1
void fpcrtl_halt(int num) {
bcd1d7ad2f3e Model file for coverity checks
unc0rr
parents:
diff changeset
     2
    __coverity_panic__();
bcd1d7ad2f3e Model file for coverity checks
unc0rr
parents:
diff changeset
     3
}
bcd1d7ad2f3e Model file for coverity checks
unc0rr
parents:
diff changeset
     4
bcd1d7ad2f3e Model file for coverity checks
unc0rr
parents:
diff changeset
     5
int fpcrtl_abs(int num) {
bcd1d7ad2f3e Model file for coverity checks
unc0rr
parents:
diff changeset
     6
    return num >= 0 ? num : -num;
bcd1d7ad2f3e Model file for coverity checks
unc0rr
parents:
diff changeset
     7
}