Correct f64 -> u128/i128 generation

This commit is contained in:
gingerBill
2021-09-25 15:38:56 +01:00
parent ebc09d5e4e
commit fa0d58f96e
4 changed files with 19 additions and 1 deletions

View File

@@ -1194,7 +1194,7 @@ lbValue lb_emit_conv(lbProcedure *p, lbValue value, Type *t) {
res = lb_emit_conv(p, value, platform_src_type);
res = lb_emit_conv(p, res, platform_dst_type);
if (is_type_different_to_arch_endianness(dst)) {
res = lb_emit_byte_swap(p, res, t);
res = lb_emit_byte_swap(p, res, platform_dst_type);
}
return lb_emit_conv(p, res, t);
}