mirror of
https://github.com/X11Libre/xserver.git
synced 2026-09-21 20:26:45 +00:00
Cast char* buffers to swap functions
Reviewed-by: Peter Harris <pharris@opentext.com> Signed-off-by: Matt Turner <mattst88@gmail.com>
This commit is contained in:
parent
9edcae78c4
commit
54770c980c
3 changed files with 11 additions and 11 deletions
|
|
@ -2375,7 +2375,7 @@ SProcRenderCompositeGlyphs (ClientPtr client)
|
|||
i = elt->len;
|
||||
if (i == 0xff)
|
||||
{
|
||||
swapl(buffer);
|
||||
swapl((int *)buffer);
|
||||
buffer += 4;
|
||||
}
|
||||
else
|
||||
|
|
@ -2388,14 +2388,14 @@ SProcRenderCompositeGlyphs (ClientPtr client)
|
|||
case 2:
|
||||
while (i--)
|
||||
{
|
||||
swaps(buffer);
|
||||
swaps((short *)buffer);
|
||||
buffer += 2;
|
||||
}
|
||||
break;
|
||||
case 4:
|
||||
while (i--)
|
||||
{
|
||||
swapl(buffer);
|
||||
swapl((int *)buffer);
|
||||
buffer += 4;
|
||||
}
|
||||
break;
|
||||
|
|
|
|||
Loading…
Reference in a new issue