Commit 155cf2e
committed
coverage: Avoid overflow when the MC/DC condition limit is exceeded
If we perform this subtraction first, it can sometimes overflow to -1 before
the addition can bring its value back to 0. That behaviour seems to be benign,
but it nevertheless causes test failures in compiler configurations that check
for overflow.1 parent da159eb commit 155cf2e
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
217 | 217 | | |
218 | 218 | | |
219 | 219 | | |
220 | | - | |
| 220 | + | |
221 | 221 | | |
222 | 222 | | |
223 | 223 | | |
| |||
0 commit comments