GNU Binutils with patches for OS216
Revision | d37209fddb5e18eed2f215c89446045673dab68c (tree) |
---|---|
Time | 2008-10-01 06:53:32 |
Author | Joel Brobecker <brobecker@gnat...> |
Commiter | Joel Brobecker |
@@ -1,4 +1,9 @@ | ||
1 | -2008-09-30 Paul Hilfinger <brobecker@adacore.com> | |
1 | +2008-09-30 Paul Hilfinger <hilfinger@adacore.com> | |
2 | + | |
3 | + * ada-lang.c (ada_modulus): Correct to avoid sign problem with | |
4 | + moduli >= 2**31. | |
5 | + | |
6 | +2008-09-30 Paul Hilfinger <hilfinger@adacore.com> | |
2 | 7 | |
3 | 8 | * ada-lang.c (ada_lookup_struct_elt_type): Handle case of a "naked" |
4 | 9 | variant branch. |
@@ -9626,7 +9626,7 @@ ada_is_modular_type (struct type *type) | ||
9626 | 9626 | ULONGEST |
9627 | 9627 | ada_modulus (struct type * type) |
9628 | 9628 | { |
9629 | - return (ULONGEST) TYPE_HIGH_BOUND (type) + 1; | |
9629 | + return (ULONGEST) (unsigned int) TYPE_HIGH_BOUND (type) + 1; | |
9630 | 9630 | } |
9631 | 9631 | |
9632 | 9632 |