aboutsummaryrefslogtreecommitdiff
path: root/gdb/defs.h
diff options
context:
space:
mode:
authorJohn Gilmore <gnu@cygnus>1992-06-11 19:34:56 +0000
committerJohn Gilmore <gnu@cygnus>1992-06-11 19:34:56 +0000
commit28de880c482d203c6f660c182e3aed1902815003 (patch)
treed416d4f3c48b9460b5841d3a7e04ed93cd077ca8 /gdb/defs.h
parentd1dc824fa97b30c185fdbd5fb27ef2f85bb7c687 (diff)
downloadgdb-28de880c482d203c6f660c182e3aed1902815003.zip
gdb-28de880c482d203c6f660c182e3aed1902815003.tar.gz
gdb-28de880c482d203c6f660c182e3aed1902815003.tar.bz2
Two `long long' fixes from Robert R. Henry (rrh@dino.tera.com):
* defs.h (longest_to_int): Avoid void arm of ?: in error case. * expprint.c (print_subexp): Fix printing of register names.
Diffstat (limited to 'gdb/defs.h')
-rw-r--r--gdb/defs.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/defs.h b/gdb/defs.h
index d02d186..35151c7 100644
--- a/gdb/defs.h
+++ b/gdb/defs.h
@@ -492,7 +492,7 @@ local_hex_string_custom PARAMS ((int, char *)); /* language.c */
#if !defined (longest_to_int)
#if defined (LONG_LONG)
#define longest_to_int(x) (((x) > INT_MAX || (x) < INT_MIN) \
- ? error ("Value out of range.") : (int) (x))
+ ? (error ("Value out of range."),0) : (int) (x))
#else /* No LONG_LONG. */
/* Assume sizeof (int) == sizeof (long). */
#define longest_to_int(x) ((int) (x))