Skip to content

Commit 701649e

Browse files
author
Daniel Kroening
committed
remove useless cast in check_rec_member
This yields a clarity improvement.
1 parent 1683904 commit 701649e

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/analyses/goto_check.cpp

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1599,11 +1599,9 @@ bool goto_checkt::check_rec_member(const member_exprt &member, guardt &guard)
15991599
deref.pointer(), pointer_type(char_type()));
16001600

16011601
const exprt new_address_casted = typecast_exprt::conditional_cast(
1602-
typecast_exprt{
1603-
plus_exprt{char_pointer,
1604-
typecast_exprt::conditional_cast(
1605-
member_offset_opt.value(), pointer_diff_type())},
1606-
char_pointer.type()},
1602+
plus_exprt{char_pointer,
1603+
typecast_exprt::conditional_cast(
1604+
member_offset_opt.value(), pointer_diff_type())},
16071605
new_pointer_type);
16081606

16091607
dereference_exprt new_deref{new_address_casted};

0 commit comments

Comments
 (0)