Skip to content

Commit f79100f

Browse files
author
Daniel Kroening
authored
Merge pull request diffblue#836 from reuk/padding-fix
Fix iterator-invalidation bug in ansi-c/padding.cpp
2 parents 5813937 + feb1108 commit f79100f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ansi-c/padding.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ void add_padding(struct_typet &type, const namespacet &ns)
203203
it!=components.end();
204204
it++)
205205
{
206-
const typet &it_type=it->type();
206+
const typet it_type=it->type();
207207
mp_integer a=1;
208208

209209
const bool packed=it_type.get_bool(ID_C_packed) ||

0 commit comments

Comments
 (0)