Skip to content

Commit 3b73b99

Browse files
author
svorenova
committed
Make sure incomplete array uses the correct id
1 parent 5b701e2 commit 3b73b99

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/util/std_types.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1051,8 +1051,8 @@ class incomplete_array_typet:public type_with_subtypet
10511051
{
10521052
}
10531053

1054-
explicit incomplete_array_typet(const typet &_subtype):
1055-
type_with_subtypet(ID_array, _subtype)
1054+
explicit incomplete_array_typet(const typet &_subtype)
1055+
: type_with_subtypet(ID_incomplete_array, _subtype)
10561056
{
10571057
}
10581058
};
@@ -1063,7 +1063,7 @@ class incomplete_array_typet:public type_with_subtypet
10631063
template <>
10641064
inline bool can_cast_type<incomplete_array_typet>(const typet &type)
10651065
{
1066-
return type.id() == ID_array;
1066+
return type.id() == ID_incomplete_array;
10671067
}
10681068

10691069
/// \brief Cast a typet to an \ref incomplete_array_typet

0 commit comments

Comments
 (0)