mirror of
https://github.com/odin-lang/Odin.git
synced 2026-01-10 15:03:22 +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);
|
||||
if (is_type_pointer(rt)) {
|
||||
right = lb_emit_load(p, right);
|
||||
rt = type_deref(rt);
|
||||
rt = base_type(type_deref(rt));
|
||||
}
|
||||
|
||||
switch (rt->kind) {
|
||||
|
||||
Reference in New Issue
Block a user