mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-07 16:18:52 +00:00
Unary expression for vector (fix)
This commit is contained in:
+1
-1
@@ -2087,7 +2087,7 @@ void check_unary_expr(Checker *c, Operand *o, Token op, AstNode *node) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (o->mode == Addressing_Constant) {
|
if (o->mode == Addressing_Constant && !is_type_vector(o->type)) {
|
||||||
Type *type = base_type(o->type);
|
Type *type = base_type(o->type);
|
||||||
if (!is_type_constant_type(o->type)) {
|
if (!is_type_constant_type(o->type)) {
|
||||||
gbString xt = type_to_string(o->type);
|
gbString xt = type_to_string(o->type);
|
||||||
|
|||||||
Reference in New Issue
Block a user