diff options
Diffstat (limited to 'gcc/java/typeck.c')
| -rw-r--r-- | gcc/java/typeck.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/java/typeck.c b/gcc/java/typeck.c index 289048ed1fa..830b95c5c62 100644 --- a/gcc/java/typeck.c +++ b/gcc/java/typeck.c @@ -357,8 +357,8 @@ build_prim_array_type (tree element_type, HOST_WIDE_INT length) if (length != -1) { - tree max_index = build_int_2 (length - 1, (0 == length ? -1 : 0)); - TREE_TYPE (max_index) = sizetype; + tree max_index = build_int_cst (sizetype, + length - 1, (0 == length ? -1 : 0)); index = build_index_type (max_index); } return build_array_type (element_type, index); |

