Commit b1f41bc4 authored by Boxiang Sun's avatar Boxiang Sun

let complex real part in the left, imag in the right

parent 2c1da404
...@@ -439,8 +439,8 @@ struct expr_dispatcher { ...@@ -439,8 +439,8 @@ struct expr_dispatcher {
AST_BinOp* binop = new AST_BinOp(); AST_BinOp* binop = new AST_BinOp();
location(binop, c); location(binop, c);
binop->op_type = AST_TYPE::Add; binop->op_type = AST_TYPE::Add;
binop->right = readItem(c.real, interned_strings); binop->left = readItem(c.real, interned_strings);
binop->left = imag; binop->right = imag;
return binop; return binop;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment