Skip to content

Fix bswap_exprt constructor #2379

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 21, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/util/std_expr.h
Original file line number Diff line number Diff line change
Expand Up @@ -512,9 +512,10 @@ class bswap_exprt: public unary_exprt
set_bits_per_byte(bits_per_byte);
}

explicit bswap_exprt(const exprt &_op, std::size_t &_bits_per_byte)
bswap_exprt(const exprt &_op, std::size_t bits_per_byte)
: unary_exprt(ID_bswap, _op, _op.type())
{
set_bits_per_byte(bits_per_byte);
}

std::size_t get_bits_per_byte() const
Expand Down