File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change 1
- 3f597287b6b858794dabdfe1bf83b386aad18102
1
+ 98e92493db2ab7857a5934a950a830fc1f95a4e5
2
2
3
3
The first line of this file holds the git revision number of the last
4
4
merge done from the gofrontend repository.
Original file line number Diff line number Diff line change @@ -18790,7 +18790,7 @@ Composite_literal_expression::lower_array(Type* type)
18790
18790
18791
18791
Named_type* ntype = Type::lookup_integer_type("int");
18792
18792
Integer_type* inttype = ntype->integer_type();
18793
- if (sizeof(index) < = static_cast<size_t>(inttype->bits() * 8)
18793
+ if (sizeof(index) > = static_cast<size_t>(inttype->bits() / 8)
18794
18794
&& index >> (inttype->bits() - 1) != 0)
18795
18795
{
18796
18796
go_error_at(index_expr->location(), "index value overflow");
You can’t perform that action at this time.
0 commit comments