mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-18 06:51:47 +00:00
allow things like pointer == pointer for different pointer types that are in
the same heirarchy
This commit is contained in:
parent
8af81ede2f
commit
60520e7981
1 changed files with 5 additions and 0 deletions
|
@ -1323,6 +1323,11 @@ binary_expr (int op, expr_t *e1, expr_t *e2)
|
|||
goto type_mismatch;
|
||||
}
|
||||
break;
|
||||
case ev_pointer:
|
||||
if (!type_assignable (t1, t2) && !type_assignable (t2, t1))
|
||||
goto type_mismatch;
|
||||
type = t1;
|
||||
break;
|
||||
default:
|
||||
type_mismatch:
|
||||
return type_mismatch (e1, e2, op);
|
||||
|
|
Loading…
Reference in a new issue