mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-05-31 00:30:57 +00:00
Clean up some enum sanity checks
It seems clang defaults to unsigned for enums. Interestingly, gcc was ok with the checks being either way. I guess gcc treats enums that *can* be unsigned as DWIM.
This commit is contained in:
parent
db01650dac
commit
63e5655f68
8 changed files with 11 additions and 12 deletions
|
@ -564,7 +564,7 @@ PR_DebugSetSym (progs_t *pr, pr_debug_header_t *debug)
|
|||
type_ptr += type->size) {
|
||||
type = &G_STRUCT (pr, qfot_type_t, type_encodings + type_ptr);
|
||||
if (type->meta == ty_basic
|
||||
&& type->type >= 0 && type->type < ev_type_count) {
|
||||
&& (unsigned) type->type < ev_type_count) {
|
||||
res->type_encodings[type->type] = type;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue