Render: Fix 'comparing between distinct pointer types' warning
Add the appropriate casts so that gcc shuts up, even if it doesn't matter. Signed-off-by: Daniel Stone <daniel@fooishbar.org> Reviewed-by: Tiago Vignatti <tiago.vignatti@nokia.com>
This commit is contained in:
parent
469d5bf8b7
commit
efcb63d0ce
|
@ -1084,8 +1084,10 @@ ProcRenderAddGlyphs (ClientPtr client)
|
||||||
remain -= (sizeof (CARD32) + sizeof (xGlyphInfo)) * nglyphs;
|
remain -= (sizeof (CARD32) + sizeof (xGlyphInfo)) * nglyphs;
|
||||||
|
|
||||||
/* protect against bad nglyphs */
|
/* protect against bad nglyphs */
|
||||||
if (gi < stuff || gi > ((CARD32 *)stuff + client->req_len) ||
|
if (gi < ((xGlyphInfo *)stuff) ||
|
||||||
bits < stuff || bits > ((CARD32 *)stuff + client->req_len)) {
|
gi > ((xGlyphInfo *)((CARD32 *)stuff + client->req_len)) ||
|
||||||
|
bits < ((CARD8 *)stuff) ||
|
||||||
|
bits > ((CARD8 *)((CARD32 *)stuff + client->req_len))) {
|
||||||
err = BadLength;
|
err = BadLength;
|
||||||
goto bail;
|
goto bail;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user