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 /src/savage_dri.c | |
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
Diffstat (limited to 'src/savage_dri.c')
-rw-r--r-- | src/savage_dri.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |