mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 23:58:50 +00:00
Correct x in ptr logic
This commit is contained in:
@@ -1369,7 +1369,7 @@ lbValue lb_build_binary_expr(lbProcedure *p, Ast *expr) {
|
|||||||
Type *rt = base_type(right.type);
|
Type *rt = base_type(right.type);
|
||||||
if (is_type_pointer(rt)) {
|
if (is_type_pointer(rt)) {
|
||||||
right = lb_emit_load(p, right);
|
right = lb_emit_load(p, right);
|
||||||
rt = type_deref(rt);
|
rt = base_type(type_deref(rt));
|
||||||
}
|
}
|
||||||
|
|
||||||
switch (rt->kind) {
|
switch (rt->kind) {
|
||||||
|
|||||||
Reference in New Issue
Block a user