summaryrefslogtreecommitdiffstats
path: root/include/coff/ti.h
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2000-04-13 01:08:05 +0000
committerAlan Modra <amodra@gmail.com>2000-04-13 01:08:05 +0000
commitfc633e5b9780011f74f2c23837968e43e262a239 (patch)
tree5ccc69c4b1e69941727cee9ebe0a9a7fcd31de32 /include/coff/ti.h
parent3db10f32e0e0cbf960edcdf6ed42ccb3bc7c4952 (diff)
downloadppe42-binutils-fc633e5b9780011f74f2c23837968e43e262a239.tar.gz
ppe42-binutils-fc633e5b9780011f74f2c23837968e43e262a239.zip
Remove U suffix from constants for K&R compilers.
Fix a couple of 64 bit nits.
Diffstat (limited to 'include/coff/ti.h')
-rw-r--r--include/coff/ti.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/coff/ti.h b/include/coff/ti.h
index 40f2d1c4c0..306ad7b2c2 100644
--- a/include/coff/ti.h
+++ b/include/coff/ti.h
@@ -252,10 +252,10 @@ PUT_SCNHDR_FLAGS(ABFD,((struct internal_scnhdr *)(INT))->s_flags, \
#define LONG_ADDRESSES 1
#define PG_SHIFT (LONG_ADDRESSES ? 30 : 16)
-#define ADDR_MASK ((1ul<<PG_SHIFT)-1)/* 16 or 24-bit addresses */
-#define PG_MASK (3ul<<PG_SHIFT)
-#define PG_TO_FLAG(p) ((p)<<PG_SHIFT)
-#define FLAG_TO_PG(f) (((f)&PG_MASK)>>PG_SHIFT)
+#define ADDR_MASK (((unsigned long) 1 << PG_SHIFT) - 1)
+#define PG_MASK ((unsigned long) 3 << PG_SHIFT)
+#define PG_TO_FLAG(p) ((p) << PG_SHIFT)
+#define FLAG_TO_PG(f) (((f) & PG_MASK) >> PG_SHIFT)
/*
* names of "special" sections
OpenPOWER on IntegriCloud