• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

GNU Binutils with patches for OS216


Commit MetaInfo

Revisiond37209fddb5e18eed2f215c89446045673dab68c (tree)
Time2008-10-01 06:53:32
AuthorJoel Brobecker <brobecker@gnat...>
CommiterJoel Brobecker

Log Message

        • ada-lang.c (ada_modulus): Correct to avoid sign problem with
          moduli >= 2**31.

Change Summary

Incremental Difference

--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -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>
27
38 * ada-lang.c (ada_lookup_struct_elt_type): Handle case of a "naked"
49 variant branch.
--- a/gdb/ada-lang.c
+++ b/gdb/ada-lang.c
@@ -9626,7 +9626,7 @@ ada_is_modular_type (struct type *type)
96269626 ULONGEST
96279627 ada_modulus (struct type * type)
96289628 {
9629- return (ULONGEST) TYPE_HIGH_BOUND (type) + 1;
9629+ return (ULONGEST) (unsigned int) TYPE_HIGH_BOUND (type) + 1;
96309630 }
96319631
96329632