mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-02-26 13:41:21 +00:00
Fix converting nil to a pointer type.
This commit is contained in:
parent
b8127f7543
commit
829fb33e92
1 changed files with 2 additions and 0 deletions
|
@ -1120,6 +1120,8 @@ convert_nil (expr_t *e, type_t *t)
|
||||||
{
|
{
|
||||||
memset (&e->e.value, 0, sizeof (e->e.value));
|
memset (&e->e.value, 0, sizeof (e->e.value));
|
||||||
e->e.value.type = t->type;
|
e->e.value.type = t->type;
|
||||||
|
if (t->type == ev_pointer)
|
||||||
|
e->e.value.v.pointer.type = t->t.fldptr.type;
|
||||||
e->type = ex_value;
|
e->type = ex_value;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue