mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 23:58:50 +00:00
Fix #2264
This commit is contained in:
@@ -1168,6 +1168,9 @@ gb_internal lbValue lb_emit_arith(lbProcedure *p, TokenKind op, lbValue lhs, lbV
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
lhs = lb_emit_conv(p, lhs, type);
|
||||||
|
rhs = lb_emit_conv(p, rhs, type);
|
||||||
|
|
||||||
if (is_type_integer(type) && is_type_different_to_arch_endianness(type)) {
|
if (is_type_integer(type) && is_type_different_to_arch_endianness(type)) {
|
||||||
switch (op) {
|
switch (op) {
|
||||||
case Token_AndNot:
|
case Token_AndNot:
|
||||||
@@ -1196,10 +1199,7 @@ gb_internal lbValue lb_emit_arith(lbProcedure *p, TokenKind op, lbValue lhs, lbV
|
|||||||
return lb_emit_byte_swap(p, res, type);
|
return lb_emit_byte_swap(p, res, type);
|
||||||
}
|
}
|
||||||
|
|
||||||
handle_op:
|
handle_op:;
|
||||||
lhs = lb_emit_conv(p, lhs, type);
|
|
||||||
rhs = lb_emit_conv(p, rhs, type);
|
|
||||||
|
|
||||||
lbValue res = {};
|
lbValue res = {};
|
||||||
res.type = type;
|
res.type = type;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user