From 60520e7981fe887d366d78155be5c1fee895c215 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Thu, 18 Jul 2002 05:16:12 +0000 Subject: [PATCH] allow things like pointer == pointer for different pointer types that are in the same heirarchy --- tools/qfcc/source/expr.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tools/qfcc/source/expr.c b/tools/qfcc/source/expr.c index b4baa3461..f231cc6c5 100644 --- a/tools/qfcc/source/expr.c +++ b/tools/qfcc/source/expr.c @@ -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);