fixes float to 128-bit int/uint conversion

This commit is contained in:
Mihail Moskov
2026-08-12 19:25:46 +03:00
parent 79c2c65bb1
commit 6a81351de3
4 changed files with 144 additions and 53 deletions

View File

@@ -2538,8 +2538,8 @@ gb_internal lbValue lb_emit_conv(lbProcedure *p, lbValue value, Type *t) {
TEMPORARY_ALLOCATOR_GUARD();
auto args = array_make<lbValue>(temporary_allocator(), 1);
args[0] = value;
char const *call = "fixunsdfdi";
args[0] = lb_emit_conv(p, value, t_f64);
char const *call = "fixdfti";
if (is_type_unsigned(dst)) {
call = "fixunsdfti";
}