diff options
author | Tormod Volden <debian.tormod@gmail.com> | 2011-01-23 12:47:04 +0100 |
---|---|---|
committer | Alex Deucher <alexdeucher@gmail.com> | 2011-01-25 13:27:34 -0500 |
commit | df8059025cafadaeea7672842d31134ed8c9c5df (patch) | |
tree | 0f89dac69b5951ae26a3cc90f57987ab99fbfdb7 | |
parent | 35d9734049a0f701d2c1f84f778f30816176d29e (diff) |
savage: More (intermediate) casts to silence warnings
savage_dga.c: In function ‘Savage_OpenFramebuffer’:
savage_dga.c:393: warning: cast to pointer from integer of different size
savage_dri.c: In function ‘SAVAGEDRIScreenInit’:
savage_dri.c:924: warning: cast to pointer from integer of different size
-rw-r--r-- | src/savage_dga.c | 2 | ||||
-rw-r--r-- | src/savage_dri.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/savage_dga.c b/src/savage_dga.c index 7a9e22c..92a179e 100644 --- a/src/savage_dga.c +++ b/src/savage_dga.c @@ -390,7 +390,7 @@ Savage_OpenFramebuffer( SavagePtr psav = SAVPTR(pScrn); *name = NULL; /* no special device */ - *mem = (unsigned char*)psav->FbRegion.base; + *mem = (unsigned char*)(int) psav->FbRegion.base; *size = psav->videoRambytes; *offset = 0; *flags = DGA_NEED_ROOT; diff --git a/src/savage_dri.c b/src/savage_dri.c index e4ebf84..90d3442 100644 --- a/src/savage_dri.c +++ b/src/savage_dri.c @@ -921,7 +921,7 @@ Bool SAVAGEDRIScreenInit( ScreenPtr pScreen ) pDRIInfo->ddxDriverMinorVersion = SAVAGE_VERSION_MINOR; pDRIInfo->ddxDriverPatchVersion = SAVAGE_PATCHLEVEL; - pDRIInfo->frameBufferPhysicalAddress = (pointer) psav->FbRegion.base; + pDRIInfo->frameBufferPhysicalAddress = (pointer)(int) psav->FbRegion.base; pDRIInfo->frameBufferSize = psav->videoRambytes; pDRIInfo->frameBufferStride = pScrn->displayWidth*(pScrn->bitsPerPixel/8); pDRIInfo->ddxDrawableTableEntry = SAVAGE_MAX_DRAWABLES; |