aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1993-12-01 19:41:16 +0000
committerIan Lance Taylor <ian@airs.com>1993-12-01 19:41:16 +0000
commit4aed7f2496263e70f19aadc95cbb0e495e4aff90 (patch)
treee50cd878863e800d145d28d90f4d5a4ede60219e
parent4032d3f09ec127390e221393e85bbbc54cd7f5e4 (diff)
downloadgdb-4aed7f2496263e70f19aadc95cbb0e495e4aff90.zip
gdb-4aed7f2496263e70f19aadc95cbb0e495e4aff90.tar.gz
gdb-4aed7f2496263e70f19aadc95cbb0e495e4aff90.tar.bz2
* bfd-in.h (uint64_typeLOW, uint64_typeHIGH): Fully parenthesize
for clarity. (fprintf_vma, sprintf_vma): Use %lx, not %x. * bfd-in2.h: Rebuilt.
-rw-r--r--bfd/bfd-in2.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/bfd/bfd-in2.h b/bfd/bfd-in2.h
index a5e1b98..52a29b1 100644
--- a/bfd/bfd-in2.h
+++ b/bfd/bfd-in2.h
@@ -114,8 +114,8 @@ typedef unsigned HOST_64_BIT uint64_type;
#if !defined (uint64_type) && defined (__GNUC__)
#define uint64_type unsigned long long
#define int64_type long long
-#define uint64_typeLOW(x) (unsigned long)(((x) & 0xffffffff))
-#define uint64_typeHIGH(x) (unsigned long)(((x) >> 32) & 0xffffffff)
+#define uint64_typeLOW(x) ((unsigned long)(((x) & 0xffffffff)))
+#define uint64_typeHIGH(x) ((unsigned long)(((x) >> 32) & 0xffffffff))
#endif
typedef unsigned HOST_64_BIT bfd_vma;
@@ -123,9 +123,9 @@ typedef HOST_64_BIT bfd_signed_vma;
typedef unsigned HOST_64_BIT bfd_size_type;
typedef unsigned HOST_64_BIT symvalue;
#define fprintf_vma(s,x) \
- fprintf(s,"%08x%08x", uint64_typeHIGH(x), uint64_typeLOW(x))
+ fprintf(s,"%08lx%08lx", uint64_typeHIGH(x), uint64_typeLOW(x))
#define sprintf_vma(s,x) \
- sprintf(s,"%08x%08x", uint64_typeHIGH(x), uint64_typeLOW(x))
+ sprintf(s,"%08lx%08lx", uint64_typeHIGH(x), uint64_typeLOW(x))
#else /* not BFD64 */
/* Represent a target address. Also used as a generic unsigned type