Skip to content

Commit 6ee60cd

Browse files
committed
Do not unnecessarily convert mp_integer to bounded type
1 parent b8743fa commit 6ee60cd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/goto-cc/linker_script_merge.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,7 @@ int linker_script_merget::ls_data2instructions(
415415

416416

417417
// Array symbol_exprt
418-
std::size_t array_size=integer2size_t(string2integer(d["size"].value));
418+
mp_integer array_size = string2integer(d["size"].value);
419419
if(array_size > MAX_FLATTENED_ARRAY_SIZE)
420420
{
421421
warning() << "Object section '" << d["section"].value << "' of size "
@@ -434,7 +434,7 @@ int linker_script_merget::ls_data2instructions(
434434
array_loc.set_file(linker_script);
435435
std::ostringstream array_comment;
436436
array_comment << "Object section '" << d["section"].value << "' of size "
437-
<< integer2unsigned(array_size) << " bytes";
437+
<< array_size << " bytes";
438438
array_loc.set_comment(array_comment.str());
439439
array_expr.add_source_location()=array_loc;
440440

0 commit comments

Comments
 (0)