Skip to content

Commit a4c52bd

Browse files
committed
Rename shadowing variable "i"
Use target_index instead to avoid shadowing.
1 parent 0890344 commit a4c52bd

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/goto-instrument/unwind.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,10 @@ void goto_unwindt::copy_segment(
5555
assert(goto_program.instructions.size()==target_vector.size());
5656

5757
// adjust intra-segment gotos
58-
for(std::size_t i=0; i<target_vector.size(); i++)
58+
for(std::size_t target_index = 0; target_index < target_vector.size();
59+
target_index++)
5960
{
60-
goto_programt::targett t=target_vector[i];
61+
goto_programt::targett t = target_vector[target_index];
6162

6263
if(!t->is_goto())
6364
continue;

0 commit comments

Comments
 (0)