Skip to content

Commit 6a64c75

Browse files
author
svorenova
committed
Make sure incomplete array uses the correct id
1 parent f3040a0 commit 6a64c75

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
@@ -1087,8 +1087,8 @@ class incomplete_array_typet:public type_with_subtypet
10871087
{
10881088
}
10891089

1090-
explicit incomplete_array_typet(const typet &_subtype):
1091-
type_with_subtypet(ID_array, _subtype)
1090+
explicit incomplete_array_typet(const typet &_subtype)
1091+
: type_with_subtypet(ID_incomplete_array, _subtype)
10921092
{
10931093
}
10941094
};
@@ -1099,7 +1099,7 @@ class incomplete_array_typet:public type_with_subtypet
10991099
template <>
11001100
inline bool can_cast_type<incomplete_array_typet>(const typet &type)
11011101
{
1102-
return type.id() == ID_array;
1102+
return type.id() == ID_incomplete_array;
11031103
}
11041104

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

0 commit comments

Comments
 (0)