Mercurial > mplayer.hg
changeset 36764:b11dc6175323
vidix/s3: Fix loads of 'void *' used in arithmetic warnings.
author | reimar |
---|---|
date | Sun, 16 Feb 2014 16:29:58 +0000 |
parents | 7ac80299454d |
children | 97446d4850cc |
files | vidix/s3_regs.h |
diffstat | 1 files changed, 6 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/vidix/s3_regs.h Sun Feb 16 16:29:57 2014 +0000 +++ b/vidix/s3_regs.h Sun Feb 16 16:29:58 2014 +0000 @@ -218,13 +218,13 @@ #define VID_OR32(p,i,val) VID_WR32(p,i,VID_RD32(p,i)|(val)) #define VID_XOR32(p,i,val) VID_WR32(p,i,VID_RD32(p,i)^(val)) -#define VGAIN8(addr) VID_RD08(info->control_base+0x8000, addr) -#define VGAIN16(addr) VID_RD16(info->control_base+0x8000, addr) -#define VGAIN(addr) VID_RD32(info->control_base+0x8000, addr) +#define VGAIN8(addr) VID_RD08((uint8_t *)info->control_base+0x8000, addr) +#define VGAIN16(addr) VID_RD16((uint8_t *)info->control_base+0x8000, addr) +#define VGAIN(addr) VID_RD32((uint8_t *)info->control_base+0x8000, addr) -#define VGAOUT8(addr,val) VID_WR08(info->control_base+0x8000, addr, val) -#define VGAOUT16(addr,val) VID_WR16(info->control_base+0x8000, addr, val) -#define VGAOUT(addr,val) VID_WR32(info->control_base+0x8000, addr, val) +#define VGAOUT8(addr,val) VID_WR08((uint8_t *)info->control_base+0x8000, addr, val) +#define VGAOUT16(addr,val) VID_WR16((uint8_t *)info->control_base+0x8000, addr, val) +#define VGAOUT(addr,val) VID_WR32((uint8_t *)info->control_base+0x8000, addr, val) #define INREG(addr) VID_RD32(info->control_base, addr) #define OUTREG(addr,val) VID_WR32(info->control_base, addr, val)