Fix "warning: cast to pointer from integer of different size"
Add parenthesis around the whole expression. Signed-off-by: Tomas Carnecky <tom@dbservice.com> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
731a907ac2
commit
dd3f4e8292
|
@ -3743,7 +3743,7 @@ void __glXDisp_ResetMinmax(GLbyte * pc)
|
|||
void __glXDisp_TexImage3D(GLbyte * pc)
|
||||
{
|
||||
const CARD32 ptr_is_null = *(CARD32 *)(pc + 76);
|
||||
const GLvoid * const pixels = (const GLvoid *) (ptr_is_null != 0) ? NULL : (pc + 80);
|
||||
const GLvoid * const pixels = (const GLvoid *) ((ptr_is_null != 0) ? NULL : (pc + 80));
|
||||
__GLXpixel3DHeader * const hdr = (__GLXpixel3DHeader *)(pc);
|
||||
|
||||
CALL_PixelStorei( GET_DISPATCH(), (GL_UNPACK_SWAP_BYTES, hdr->swapBytes) );
|
||||
|
|
|
@ -3879,7 +3879,7 @@ void __glXDispSwap_ResetMinmax(GLbyte * pc)
|
|||
void __glXDispSwap_TexImage3D(GLbyte * pc)
|
||||
{
|
||||
const CARD32 ptr_is_null = *(CARD32 *)(pc + 76);
|
||||
const GLvoid * const pixels = (const GLvoid *) (ptr_is_null != 0) ? NULL : (pc + 80);
|
||||
const GLvoid * const pixels = (const GLvoid *) ((ptr_is_null != 0) ? NULL : (pc + 80));
|
||||
__GLXpixel3DHeader * const hdr = (__GLXpixel3DHeader *)(pc);
|
||||
|
||||
CALL_PixelStorei( GET_DISPATCH(), (GL_UNPACK_SWAP_BYTES, hdr->swapBytes) );
|
||||
|
|
Loading…
Reference in New Issue
Block a user