Source-Changes-HG archive

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

[src/trunk]: src/gnu/dist/toolchain/gdb Add a cast to a chunk of code already...



details:   https://anonhg.NetBSD.org/src/rev/19383fba1ccf
branches:  trunk
changeset: 515847:19383fba1ccf
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Fri Oct 05 22:59:55 2001 +0000

description:
Add a cast to a chunk of code already marked as broken in the main
GDB sources so that it avoids a warning on LP64 systems.

diffstat:

 gnu/dist/toolchain/gdb/os9kread.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 8233e873734f -r 19383fba1ccf gnu/dist/toolchain/gdb/os9kread.c
--- a/gnu/dist/toolchain/gdb/os9kread.c Fri Oct 05 22:55:14 2001 +0000
+++ b/gnu/dist/toolchain/gdb/os9kread.c Fri Oct 05 22:59:55 2001 +0000
@@ -1549,7 +1549,7 @@
       /* Relocate for dynamic loading and for ELF acc fn-relative syms.  */
       valu += ANOFFSET (section_offsets, SECT_OFF_TEXT);
       /* FIXME: loses if sizeof (char *) > sizeof (int) */
-      record_line (current_subfile, (int) name, valu);
+      record_line (current_subfile, (int) (long) name, valu);
       break;
 
       /* The following symbol types need to have the appropriate offset added



Home | Main Index | Thread Index | Old Index