Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src apply a couple of (int) before r_type switch usage.



details:   https://anonhg.NetBSD.org/src/rev/030b49c6920c
branches:  trunk
changeset: 767035:030b49c6920c
user:      mrg <mrg%NetBSD.org@localhost>
date:      Thu Jul 07 07:47:11 2011 +0000

description:
apply a couple of (int) before r_type switch usage.

diffstat:

 external/gpl3/binutils/dist/bfd/elf32-ppc.c |  2 +-
 gnu/dist/gdb6/bfd/elf32-ppc.c               |  2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diffs (24 lines):

diff -r f50cea3d6d50 -r 030b49c6920c external/gpl3/binutils/dist/bfd/elf32-ppc.c
--- a/external/gpl3/binutils/dist/bfd/elf32-ppc.c       Thu Jul 07 07:40:46 2011 +0000
+++ b/external/gpl3/binutils/dist/bfd/elf32-ppc.c       Thu Jul 07 07:47:11 2011 +0000
@@ -6480,7 +6480,7 @@
       howto = NULL;
       if (r_type < R_PPC_max)
        howto = ppc_elf_howto_table[r_type];
-      switch (r_type)
+      switch ((int)r_type)
        {
        default:
          (*_bfd_error_handler)
diff -r f50cea3d6d50 -r 030b49c6920c gnu/dist/gdb6/bfd/elf32-ppc.c
--- a/gnu/dist/gdb6/bfd/elf32-ppc.c     Thu Jul 07 07:40:46 2011 +0000
+++ b/gnu/dist/gdb6/bfd/elf32-ppc.c     Thu Jul 07 07:47:11 2011 +0000
@@ -3028,7 +3028,7 @@
        }
 
       r_type = ELF32_R_TYPE (rel->r_info);
-      switch (r_type)
+      switch ((int)r_type)
        {
        case R_PPC_GOT_TLSLD16:
        case R_PPC_GOT_TLSLD16_LO:



Home | Main Index | Thread Index | Old Index