Commit ae662c5
committed
Fix type mismatch in ccall.c and division by zero in mcall.c
ccall.c: Change `tmpi` from float to int32_t so that
bcf_update_info_int32() receives actual integer bits instead of
reinterpreting float bits as an int32.
mcall.c: Guard the MQ calculation against division by zero when all
DP4 counts are zero, consistent with the existing check in
test16_core().1 parent db17826 commit ae662c5
2 files changed
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
141 | 141 | | |
142 | 142 | | |
143 | 143 | | |
144 | | - | |
| 144 | + | |
| 145 | + | |
145 | 146 | | |
146 | 147 | | |
147 | 148 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1659 | 1659 | | |
1660 | 1660 | | |
1661 | 1661 | | |
1662 | | - | |
| 1662 | + | |
| 1663 | + | |
1663 | 1664 | | |
1664 | 1665 | | |
1665 | 1666 | | |
| |||
0 commit comments