aboutsummaryrefslogtreecommitdiff
path: root/bfd/hosts
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1993-12-01 19:51:19 +0000
committerIan Lance Taylor <ian@airs.com>1993-12-01 19:51:19 +0000
commite92512bb28a1f36c6e9e6bed340e21b65fcf646c (patch)
treecc8c33c2650b94beab4d5efa2b6b3e4c3ae8b7c4 /bfd/hosts
parent5dac2dd5a40dc47af088abfffebae1d14de08b82 (diff)
downloadgdb-e92512bb28a1f36c6e9e6bed340e21b65fcf646c.zip
gdb-e92512bb28a1f36c6e9e6bed340e21b65fcf646c.tar.gz
gdb-e92512bb28a1f36c6e9e6bed340e21b65fcf646c.tar.bz2
* hosts/alphaosf.h (uint64_typeLOW, uint64_typeHIGH): Cast results
to unsigned long.
Diffstat (limited to 'bfd/hosts')
-rw-r--r--bfd/hosts/alphaosf.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/bfd/hosts/alphaosf.h b/bfd/hosts/alphaosf.h
index cbb5ac2..0d2c2d3 100644
--- a/bfd/hosts/alphaosf.h
+++ b/bfd/hosts/alphaosf.h
@@ -19,7 +19,9 @@ typedef long int64_type;
#define BYTES_IN_PRINTF_INT 4
-#define uint64_typeLOW(x) (((x) & 0xffffffff))
-#define uint64_typeHIGH(x) (((x) >> 32) & 0xffffffff)
+/* These must have type unsigned long because they are used as
+ arguments in printf functions. */
+#define uint64_typeLOW(x) ((unsigned long) (((x) & 0xffffffff)))
+#define uint64_typeHIGH(x) ((unsigned long) (((x) >> 32) & 0xffffffff))
#include "fopen-same.h"