projects
/
binutils-gdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5dac2dd
)
* hosts/alphaosf.h (uint64_typeLOW, uint64_typeHIGH): Cast results
author
Ian Lance Taylor
<ian@airs.com>
Wed, 1 Dec 1993 19:51:19 +0000
(19:51 +0000)
committer
Ian Lance Taylor
<ian@airs.com>
Wed, 1 Dec 1993 19:51:19 +0000
(19:51 +0000)
to unsigned long.
bfd/hosts/alphaosf.h
patch
|
blob
|
history
diff --git
a/bfd/hosts/alphaosf.h
b/bfd/hosts/alphaosf.h
index cbb5ac203cf3835867af2b4a93f43eeb1ebb87a2..0d2c2d344cc8ad2d6cbebeaa7c0f38944dbd37db 100644
(file)
--- 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"