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 Cast ints to u_longs before casting t...



details:   https://anonhg.NetBSD.org/src/rev/8233e873734f
branches:  trunk
changeset: 515846:8233e873734f
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Fri Oct 05 22:55:14 2001 +0000

description:
Cast ints to u_longs before casting to char *.  Avoids warning on
LP64 platforms.

diffstat:

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

diffs (14 lines):

diff -r 9613365a6acb -r 8233e873734f gnu/dist/toolchain/gdb/coffread.c
--- a/gnu/dist/toolchain/gdb/coffread.c Fri Oct 05 22:54:51 2001 +0000
+++ b/gnu/dist/toolchain/gdb/coffread.c Fri Oct 05 22:55:14 2001 +0000
@@ -1003,8 +1003,8 @@
                struct minimal_symbol *msym;
 
                msym = prim_record_minimal_symbol_and_info
-                 (cs->c_name, tmpaddr, ms_type, (char *) cs->c_sclass, sec,
-                  NULL, objfile);
+                 (cs->c_name, tmpaddr, ms_type,
+                 (char *) (u_long) cs->c_sclass, sec, NULL, objfile);
 #ifdef COFF_MAKE_MSYMBOL_SPECIAL
                if (msym)
                  COFF_MAKE_MSYMBOL_SPECIAL (cs->c_sclass, msym);



Home | Main Index | Thread Index | Old Index