Fix macos_aarch64 backend integer casts

This commit is contained in:
Nikita Lisitsa 2026-07-29 16:28:40 +03:00
parent f727883f46
commit e56242ca62

View file

@ -666,7 +666,7 @@ namespace pslang::jit::macos_aarch64
load(node.arg1, 0); load(node.arg1, 0);
if (types::is_integer_type(*dst_type)) if (types::is_integer_type(*dst_type))
{ {
extend(0, dst_type); extend(0, src_type);
} }
else if (types::is_floating_point_type(*dst_type)) else if (types::is_floating_point_type(*dst_type))
{ {