mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-13 08:27:39 +00:00
forgot to check for errors
This commit is contained in:
parent
ae4fc3147d
commit
0d4a2938a2
1 changed files with 2 additions and 0 deletions
|
@ -2272,6 +2272,8 @@ pointer_expr (expr_t *pointer)
|
||||||
{
|
{
|
||||||
type_t *pointer_type = get_type (pointer);
|
type_t *pointer_type = get_type (pointer);
|
||||||
|
|
||||||
|
if (pointer->type == ex_error)
|
||||||
|
return pointer;
|
||||||
if (pointer_type->type != ev_pointer)
|
if (pointer_type->type != ev_pointer)
|
||||||
return error (pointer, "not a pointer");
|
return error (pointer, "not a pointer");
|
||||||
return array_expr (pointer, new_integer_expr (0));
|
return array_expr (pointer, new_integer_expr (0));
|
||||||
|
|
Loading…
Reference in a new issue