diff options
author | Thomas Klausner <wiz@NetBSD.org> | 2015-09-28 22:49:22 +0200 |
---|---|---|
committer | Adam Jackson <ajax@redhat.com> | 2015-10-20 12:23:43 -0400 |
commit | 47f43694645f3e6347b536d5e3fb2fee56e715ab (patch) | |
tree | 5d1b5a4e82e64fb81bb70a29dc1df0323c3b7167 | |
parent | 9c8a08c9c7a0f7ec591042abd5b4a0fb50c028f1 (diff) |
Add cast to remove a warning on 32-bit machines.
PCI_REGION_BASE returns a 64-bit value, which needs to be converted
down to 32-bit before it can be put into a 32-bit pointer.
-rw-r--r-- | src/s3v_dga.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/s3v_dga.c b/src/s3v_dga.c index 0e603cf..0ab374d 100644 --- a/src/s3v_dga.c +++ b/src/s3v_dga.c @@ -337,7 +337,7 @@ S3V_OpenFramebuffer( S3VPtr ps3v = S3VPTR(pScrn); *name = NULL; /* no special device */ - *mem = (unsigned char*)PCI_REGION_BASE(ps3v->PciInfo, 0, REGION_MEM); + *mem = (unsigned char*)(uintptr_t)PCI_REGION_BASE(ps3v->PciInfo, 0, REGION_MEM); *size = ps3v->videoRambytes; *offset = 0; *flags = DGA_NEED_ROOT; |