diff options
Diffstat (limited to 'src/farptr.h')
-rw-r--r-- | src/farptr.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/farptr.h b/src/farptr.h index de6331a..aa86b9b 100644 --- a/src/farptr.h +++ b/src/farptr.h @@ -137,8 +137,9 @@ DECL_SEGFUNCS(SS) #define FLATPTR_TO_OFFSET(p) (((u32)(p)) & 0xf) #define MAKE_FLATPTR(seg,off) ((void*)(((u32)(seg)<<4)+(u32)(off))) #elif CONFIG_PARISC -#define FLATPTR_TO_SEG(p) (((u32)(p)) >> 16) -#define FLATPTR_TO_OFFSET(p) (((u32)(p)) & 0xffff) +#define uintptr_t unsigned long +#define FLATPTR_TO_SEG(p) (((uintptr_t)(p)) >> 16) +#define FLATPTR_TO_OFFSET(p) (((uintptr_t)(p)) & 0xffff) #define MAKE_FLATPTR(seg,off) ((void*)(unsigned long)(off)) #endif |