mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-03-21 18:01:15 +00:00
Handle type-modified constants.
The fix for pointers broke constants (particularly, enums). Oops.
This commit is contained in:
parent
fa6b8d773c
commit
f24de89a2a
1 changed files with 4 additions and 1 deletions
|
@ -72,7 +72,10 @@ get_value_def (ex_value_t *value, etype_t type)
|
|||
def->offset = value->v.short_val;
|
||||
return def;
|
||||
}
|
||||
return emit_value (value, 0);
|
||||
def = emit_value (value, 0);
|
||||
if (type != def->type->type)
|
||||
return alias_def (def, ev_types[type]);
|
||||
return def;
|
||||
}
|
||||
|
||||
static def_t *
|
||||
|
|
Loading…
Reference in a new issue