mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 15:22:04 +00:00
that particular error case is a type mismatch rather than an internal error. found when trying to compare a SEL with a string... oops :)
This is an imperfect revision of history.
This commit is contained in:
parent
b35561504c
commit
a97f74a6ac
1 changed files with 1 additions and 1 deletions
|
@ -434,7 +434,7 @@ do_op_pointer (int op, expr_t *e, expr_t *e1, expr_t *e2)
|
|||
}
|
||||
if (op != PAS && op != '.' && op != '&' && op != 'M'
|
||||
&& extract_type (e1) != extract_type (e2))
|
||||
internal_error (e);
|
||||
type_mismatch (e1, e2, op);
|
||||
if ((op == '.' || op == '&') && get_type (e2) == &type_uinteger) {
|
||||
//FIXME should implement unsigned addressing
|
||||
e->e.expr.e2 = cast_expr (&type_integer, e2);
|
||||
|
|
Loading…
Reference in a new issue