mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 15:22:04 +00:00
fix a missed immediate type missmatch case
This commit is contained in:
parent
42b5a5d150
commit
dc80f51d89
1 changed files with 6 additions and 0 deletions
|
@ -183,6 +183,12 @@ PR_ReuseConstant (expr_t *expr, def_t *def)
|
|||
def->ofs = cn->ofs;
|
||||
def->initialized = def->constant = 1;
|
||||
cn = def;
|
||||
} else {
|
||||
if (cn->type != type) {
|
||||
def = PR_NewDef (type, ".imm", 0);
|
||||
def->ofs = cn->ofs;
|
||||
cn = def;
|
||||
}
|
||||
}
|
||||
return cn;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue