diff options
Diffstat (limited to 'gcc/go')
-rw-r--r-- | gcc/go/gofrontend/types.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/go/gofrontend/types.cc b/gcc/go/gofrontend/types.cc index 840de2b..bbf217a 100644 --- a/gcc/go/gofrontend/types.cc +++ b/gcc/go/gofrontend/types.cc @@ -4883,7 +4883,7 @@ Array_type::array_type_descriptor(Gogo* gogo, Named_type* name) ++p; gcc_assert(p->field_name() == "len"); - vals->push_back(this->length_); + vals->push_back(Expression::make_cast(p->type(), this->length_, bloc)); ++p; gcc_assert(p == fields->end()); |