mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-03-19 08:51:59 +00:00
correct type error checking for vectors vs floats
This commit is contained in:
parent
579d78407d
commit
c8e1e7942a
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue