Commit 942b62c
Enum: use signed instead of unsigned int for enum representation
This hits upon a larger issue. It doesn't seem fully clear what type a
compiler will use to represent an enum, but signed integer seems to be a
good enough solution as enum-constants (not the enum itself) are
defined as int signed. See following patch note
https://gcc.gnu.org/legacy-ml/gcc-patches/2000-07/msg00993.html
Signed-off-by: Sophie Tyalie <dev@flowerpot.me>1 parent 2e9836c commit 942b62c
1 file changed
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
| |||
0 commit comments