Remove U suffix from constants for K&R compilers.

Fix a couple of 64 bit nits.
This commit is contained in:
Alan Modra 2000-04-13 01:08:05 +00:00
parent 7ef25eb606
commit 88adca8b0e
2 changed files with 9 additions and 4 deletions

View File

@ -1,3 +1,8 @@
2000-04-13 Alan Modra <alan@linuxcare.com.au>
* ti.h (ADDR_MASK): Don't use ul suffix on constants.
(PG_MASK): Ditto.
2000-04-11 Timothy Wall <twall@cygnus.com> 2000-04-11 Timothy Wall <twall@cygnus.com>
* ti.h: Remove load page references until load pages are * ti.h: Remove load page references until load pages are

View File

@ -252,10 +252,10 @@ PUT_SCNHDR_FLAGS(ABFD,((struct internal_scnhdr *)(INT))->s_flags, \
#define LONG_ADDRESSES 1 #define LONG_ADDRESSES 1
#define PG_SHIFT (LONG_ADDRESSES ? 30 : 16) #define PG_SHIFT (LONG_ADDRESSES ? 30 : 16)
#define ADDR_MASK ((1ul<<PG_SHIFT)-1)/* 16 or 24-bit addresses */ #define ADDR_MASK (((unsigned long) 1 << PG_SHIFT) - 1)
#define PG_MASK (3ul<<PG_SHIFT) #define PG_MASK ((unsigned long) 3 << PG_SHIFT)
#define PG_TO_FLAG(p) ((p)<<PG_SHIFT) #define PG_TO_FLAG(p) ((p) << PG_SHIFT)
#define FLAG_TO_PG(f) (((f)&PG_MASK)>>PG_SHIFT) #define FLAG_TO_PG(f) (((f) & PG_MASK) >> PG_SHIFT)
/* /*
* names of "special" sections * names of "special" sections