diff options
Diffstat (limited to 'gcc/java/expr.c')
-rw-r--r-- | gcc/java/expr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/java/expr.c b/gcc/java/expr.c index a434913d475..0720065717c 100644 --- a/gcc/java/expr.c +++ b/gcc/java/expr.c @@ -1049,7 +1049,7 @@ build_newarray (int atype_value, tree length) tree prim_type = decode_newarray_type (atype_value); tree type = build_java_array_type (prim_type, - host_integerp (length, 0) == INTEGER_CST + tree_fits_shwi_p (length) == INTEGER_CST ? tree_low_cst (length, 0) : -1); /* Pass a reference to the primitive type class and save the runtime @@ -1069,7 +1069,7 @@ build_anewarray (tree class_type, tree length) { tree type = build_java_array_type (class_type, - host_integerp (length, 0) + tree_fits_shwi_p (length) ? tree_low_cst (length, 0) : -1); return build_call_nary (promote_type (type), |