misc/coverity_model.c
author unC0Rr
Fri, 16 Jun 2023 21:06:46 +0200
changeset 15959 723be7e392e5
parent 10498 bcd1d7ad2f3e
permissions -rw-r--r--
Fix off-by-1 error leading to crash

void fpcrtl_halt(int num) {
    __coverity_panic__();
}

int fpcrtl_abs(int num) {
    return num >= 0 ? num : -num;
}