mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-08-04 21:08:40 +00:00
apply integer truncation operations on both sign/size changes, rather than just size
This commit is contained in:
+1
-1
@@ -873,7 +873,7 @@ e_push_irtree_and_type_from_expr(Arena *arena, E_IRTreeAndType *root_parent, E_I
|
|||||||
{
|
{
|
||||||
new_tree = e_irtree_convert_lo(arena, in_tree, out_group, in_group);
|
new_tree = e_irtree_convert_lo(arena, in_tree, out_group, in_group);
|
||||||
}
|
}
|
||||||
if(cast_type_byte_size < casted_type_byte_size && e_type_kind_is_integer(cast_type_kind))
|
if(cast_type_kind != casted_type_kind && e_type_kind_is_integer(cast_type_kind))
|
||||||
{
|
{
|
||||||
new_tree = e_irtree_trunc(arena, in_tree, cast_type);
|
new_tree = e_irtree_trunc(arena, in_tree, cast_type);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user