Fixed error handling in vector by scalar multiplication

https://forum.zdoom.org/viewtopic.php?t=57089
This commit is contained in:
alexey.lysiuk 2017-07-01 12:37:31 +03:00
parent 925274ca0c
commit 71b70d74a9

View file

@ -3071,6 +3071,7 @@ FxExpression *FxMulDiv::Resolve(FCompileContext& ctx)
} }
} }
ValueType = left->ValueType; ValueType = left->ValueType;
break;
} }
else if (right->IsVector() && left->IsNumeric()) else if (right->IsVector() && left->IsNumeric())
{ {
@ -3085,8 +3086,9 @@ FxExpression *FxMulDiv::Resolve(FCompileContext& ctx)
} }
} }
ValueType = right->ValueType; ValueType = right->ValueType;
break;
} }
break; // Incompatible operands, intentional fall-through
default: default:
// Vector modulus is not permitted // Vector modulus is not permitted