mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-17 22:50:51 +00:00
mark allocated fields constant
This commit is contained in:
parent
d7eea11c91
commit
090e65bc09
1 changed files with 1 additions and 0 deletions
|
@ -270,6 +270,7 @@ get_def (type_t *type, const char *name, scope_t *scope,
|
||||||
if (storage == st_global || storage == st_static) {
|
if (storage == st_global || storage == st_static) {
|
||||||
G_INT (def->ofs) = new_location (type->aux_type, pr.entity_data);
|
G_INT (def->ofs) = new_location (type->aux_type, pr.entity_data);
|
||||||
reloc_def_field (def, def->ofs);
|
reloc_def_field (def, def->ofs);
|
||||||
|
def->constant = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (type->aux_type->type == ev_vector) {
|
if (type->aux_type->type == ev_vector) {
|
||||||
|
|
Loading…
Reference in a new issue