From c8e1e7942a949120206adf6dccccfafabbb1caf9 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Fri, 12 Oct 2001 03:58:22 +0000 Subject: [PATCH] correct type error checking for vectors vs floats --- tools/qfcc/source/expr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/qfcc/source/expr.c b/tools/qfcc/source/expr.c index a3e2cbd3e..b5847f415 100644 --- a/tools/qfcc/source/expr.c +++ b/tools/qfcc/source/expr.c @@ -850,14 +850,14 @@ binary_expr (int op, expr_t *e1, expr_t *e2) if (t1 != t2) { switch (t1) { case ev_float: - if (t2 == ev_vector) { + if (t2 == ev_vector && op == '*') { type = &type_vector; } else { goto type_mismatch; } break; case ev_vector: - if (t2 == ev_float) { + if (t2 == ev_float && op == '*') { type = &type_vector; } else { goto type_mismatch;