Browse Source

Correct `check_transmute` operand logic

gingerBill 3 years ago
parent
commit
084f431aa5
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/check_expr.cpp

+ 2 - 0
src/check_expr.cpp

@@ -2844,8 +2844,10 @@ bool check_transmute(CheckerContext *c, Ast *node, Operand *o, Type *t) {
 		}
 		}
 	}
 	}
 
 
+	o->expr = node;
 	o->mode = Addressing_Value;
 	o->mode = Addressing_Value;
 	o->type = t;
 	o->type = t;
+	o->value = {};
 	return true;
 	return true;
 }
 }