Commit cab7b52
committed
C front-end: fix promotion order for types ranking lower than int
The ranks specified in the enum are only correct if sizeof(int) > sizeof(short)
and sizeof(int) > sizeof(char). The code was supposed to fix this up, but none
of the branches was feasible as max_type would always be at least INT.
Fixes: #17481 parent c450328 commit cab7b52
File tree
3 files changed
+27
-8
lines changed- regression/cbmc/Promotion4
- src/ansi-c
3 files changed
+27
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
418 | 418 | | |
419 | 419 | | |
420 | 420 | | |
421 | | - | |
422 | | - | |
423 | | - | |
424 | | - | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
425 | 426 | | |
426 | | - | |
427 | | - | |
| 427 | + | |
| 428 | + | |
428 | 429 | | |
429 | | - | |
430 | | - | |
431 | 430 | | |
432 | 431 | | |
433 | 432 | | |
| |||
0 commit comments