mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 15:48:51 +00:00
using correct type for val1
This commit is contained in:
@@ -481,7 +481,7 @@ void lb_build_range_interval(lbProcedure *p, AstBinaryExpr *node,
|
|||||||
lbAddr index;
|
lbAddr index;
|
||||||
if (val1_type != nullptr) {
|
if (val1_type != nullptr) {
|
||||||
Entity *e = entity_of_node(rs->vals[1]);
|
Entity *e = entity_of_node(rs->vals[1]);
|
||||||
index = lb_add_local(p, t_int, e, false);
|
index = lb_add_local(p, val1_type, e, false);
|
||||||
} else {
|
} else {
|
||||||
index = lb_add_local_generated(p, t_int, false);
|
index = lb_add_local_generated(p, t_int, false);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user