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