mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-27 09:38:57 +00:00
* defs.h, valprint.c: Make longest_to_int a function not a macro.
Only test against INT_MIN if a LONGEST is bigger than an int.
This commit is contained in:
@@ -556,8 +556,7 @@ enum val_prettyprint
|
||||
arguments to a function, number in a value history, register number, etc.)
|
||||
where the value must not be larger than can fit in an int. */
|
||||
|
||||
#define longest_to_int(x) (((x) > INT_MAX || (x) < INT_MIN) \
|
||||
? (error ("Value out of range."),0) : (int) (x))
|
||||
extern int longest_to_int PARAMS ((LONGEST));
|
||||
|
||||
/* Assorted functions we can declare, now that const and volatile are
|
||||
defined. */
|
||||
|
||||
Reference in New Issue
Block a user