mirror of
https://github.com/odin-lang/Odin.git
synced 2026-06-07 11:04:17 +00:00
Move redundant auto_cast error from -vet to -vet-extra
This commit is contained in:
@@ -1204,6 +1204,17 @@ lbValue lb_emit_conv(lbProcedure *p, lbValue value, Type *t) {
|
||||
}
|
||||
return lb_emit_conv(p, res, t);
|
||||
}
|
||||
|
||||
if (is_type_integer_128bit(dst)) {
|
||||
auto args = array_make<lbValue>(temporary_allocator(), 1);
|
||||
args[0] = value;
|
||||
char const *call = "fixunsdfdi";
|
||||
if (is_type_unsigned(dst)) {
|
||||
call = "fixunsdfti";
|
||||
}
|
||||
lbValue res_i128 = lb_emit_runtime_call(p, call, args);
|
||||
return lb_emit_conv(p, res_i128, t);
|
||||
}
|
||||
|
||||
lbValue res = {};
|
||||
res.type = t;
|
||||
|
||||
Reference in New Issue
Block a user