* hosts/alphaosf.h (uint64_typeLOW, uint64_typeHIGH): Cast results
[deliverable/binutils-gdb.git] / bfd / hosts / alphaosf.h
index b8060bce8609548d713663f78bbf0a82068c4b69..0d2c2d344cc8ad2d6cbebeaa7c0f38944dbd37db 100644 (file)
@@ -1,3 +1,4 @@
+#include <stddef.h>
 #include <fcntl.h>
 #include <errno.h>
 #include <stdio.h>
@@ -18,6 +19,9 @@ typedef  long int64_type;
 
 #define BYTES_IN_PRINTF_INT 4
 
-#define uint64_typeLOW(x) (uint32_type)(((x) & 0xffffffff))
-#define uint64_typeHIGH(x) (uint32_type)(((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"
This page took 0.023317 seconds and 4 git commands to generate.