[PATCH] Java: Small update.
Alexandre Petit-Bianco
apbianco@cygnus.com
Mon Mar 13 13:36:00 GMT 2000
I checked in this patch, which was sent to me by Hans Boehm a while
ago.
./A
Mon Mar 13 11:36:51 2000 Hans Boehm <boehm@acm.org>
* typeck.c (build_prim_array_type): Correctly set the high word too.
Index: typeck.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/java/typeck.c,v
retrieving revision 1.25
diff -u -p -r1.25 typeck.c
--- typeck.c 2000/03/07 06:25:14 1.25
+++ typeck.c 2000/03/13 21:31:34
@@ -360,7 +360,7 @@ build_prim_array_type (element_type, len
tree element_type;
HOST_WIDE_INT length;
{
- tree max_index = build_int_2 (length - 1, 0);
+ tree max_index = build_int_2 (length - 1, (0 == length ? -1 : 0));
TREE_TYPE (max_index) = sizetype;
return build_array_type (element_type, build_index_type (max_index));
}
More information about the Gcc-patches
mailing list