Skip to content

Do not unnecessarily convert mp_integer to bounded type #2407

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 24, 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
4 changes: 2 additions & 2 deletions src/goto-cc/linker_script_merge.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@ int linker_script_merget::ls_data2instructions(


// Array symbol_exprt
std::size_t array_size=integer2size_t(string2integer(d["size"].value));
mp_integer array_size = string2integer(d["size"].value);
if(array_size > MAX_FLATTENED_ARRAY_SIZE)
{
warning() << "Object section '" << d["section"].value << "' of size "
Expand All @@ -434,7 +434,7 @@ int linker_script_merget::ls_data2instructions(
array_loc.set_file(linker_script);
std::ostringstream array_comment;
array_comment << "Object section '" << d["section"].value << "' of size "
<< integer2unsigned(array_size) << " bytes";
<< array_size << " bytes";
array_loc.set_comment(array_comment.str());
array_expr.add_source_location()=array_loc;

Expand Down