Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions runtime-common/core/core-types/definition/array.inl
Original file line number Diff line number Diff line change
Expand Up @@ -107,15 +107,15 @@ template<>
inline typename array<Unknown>::array_inner* array<Unknown>::array_inner::empty_array() {
// need this hack because gcc10 and newer complains about
// "array subscript is outside array bounds of array<Unknown>::array_inner"
static array_inner_control empty_array[1]{{
static constexpr array_inner_control empty_array[1]{{
true,
ExtraRefCnt::for_global_const,
-1,
{0, 0},
0,
2,
}};
return static_cast<array<Unknown>::array_inner*>(&empty_array[0]);
return const_cast<array<Unknown>::array_inner*>(static_cast<const array<Unknown>::array_inner*>(&empty_array[0]));
}

template<class T>
Expand Down
Loading