Skip to content

Commit 4a7b064

Browse files
authored
Merge pull request #6051 from tautschnig/unnecessary-cast
Remove unnecessary size_t -> unsigned cast
2 parents e0bc853 + e09de8a commit 4a7b064

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/goto-symex/goto_symex_state.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -800,7 +800,7 @@ ssa_exprt goto_symex_statet::add_object(
800800

801801
const renamedt<ssa_exprt, L0> renamed = rename_ssa<L0>(ssa_exprt{expr}, ns);
802802
const irep_idt l0_name = renamed.get_identifier();
803-
const auto l1_index = narrow_cast<unsigned>(index_generator(l0_name));
803+
const std::size_t l1_index = index_generator(l0_name);
804804

805805
if(const auto old_value = level1.insert_or_replace(renamed, l1_index))
806806
{

0 commit comments

Comments
 (0)