[qfcc] Handle vector scaling by ints

I missed a change when implementing support for the scale instructions.
This commit is contained in:
Bill Currie 2022-02-04 21:57:41 +09:00
parent 2a8fca80a0
commit 1b40cdbab6
2 changed files with 3 additions and 1 deletions

View file

@ -75,6 +75,7 @@ get_op_string (int op)
case GE: return ">=";
case LT: return "<";
case GT: return ">";
case '=': return "=";
case '+': return "+";
case '-': return "-";
case '*': return "*";
@ -92,6 +93,7 @@ get_op_string (int op)
case 'C': return "<cast>";
case CROSS: return "@cross";
case DOT: return "@dot";
case SCALE: return "@scale";
default:
return "unknown";
}

View file

@ -258,7 +258,7 @@ static expr_type_t int_float[] = {
};
static expr_type_t int_vector[] = {
{'*', &type_vector, &type_float, 0},
{'*', &type_vector, &type_float, 0, vector_scale},
{0, 0}
};