mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-05 15:15:42 +00:00
* valprint.c (print_longest) [CC_HAS_LONG_LONG &&
PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned long long) to prevent compiler warning on 64-bit systems.
This commit is contained in:
@@ -1,3 +1,9 @@
|
|||||||
|
2002-08-24 Mark Kettenis <kettenis@gnu.org>
|
||||||
|
|
||||||
|
* valprint.c (print_longest) [CC_HAS_LONG_LONG &&
|
||||||
|
PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
|
||||||
|
long long) to prevent compiler warning on 64-bit systems.
|
||||||
|
|
||||||
2002-08-23 Andrew Cagney <cagney@redhat.com>
|
2002-08-23 Andrew Cagney <cagney@redhat.com>
|
||||||
|
|
||||||
* gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
|
* gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
|
||||||
|
|||||||
@@ -332,7 +332,7 @@ print_longest (struct ui_file *stream, int format, int use_local,
|
|||||||
fprintf_filtered (stream,
|
fprintf_filtered (stream,
|
||||||
use_local ? local_decimal_format_custom ("ll")
|
use_local ? local_decimal_format_custom ("ll")
|
||||||
: "%lld",
|
: "%lld",
|
||||||
val_long);
|
(long long) val_long);
|
||||||
break;
|
break;
|
||||||
case 'u':
|
case 'u':
|
||||||
fprintf_filtered (stream, "%llu", (long long) val_long);
|
fprintf_filtered (stream, "%llu", (long long) val_long);
|
||||||
@@ -341,13 +341,13 @@ print_longest (struct ui_file *stream, int format, int use_local,
|
|||||||
fprintf_filtered (stream,
|
fprintf_filtered (stream,
|
||||||
use_local ? local_hex_format_custom ("ll")
|
use_local ? local_hex_format_custom ("ll")
|
||||||
: "%llx",
|
: "%llx",
|
||||||
val_long);
|
(unsigned long long) val_long);
|
||||||
break;
|
break;
|
||||||
case 'o':
|
case 'o':
|
||||||
fprintf_filtered (stream,
|
fprintf_filtered (stream,
|
||||||
use_local ? local_octal_format_custom ("ll")
|
use_local ? local_octal_format_custom ("ll")
|
||||||
: "%llo",
|
: "%llo",
|
||||||
val_long);
|
(unsigned long long) val_long);
|
||||||
break;
|
break;
|
||||||
case 'b':
|
case 'b':
|
||||||
fprintf_filtered (stream, local_hex_format_custom ("02ll"), val_long);
|
fprintf_filtered (stream, local_hex_format_custom ("02ll"), val_long);
|
||||||
|
|||||||
Reference in New Issue
Block a user