mirror of
https://github.com/X11Libre/xserver.git
synced 2026-11-09 04:20:30 +00:00
Xext: Fix type mismatch in xvdisp.c
Some checks are pending
Build X servers / xserver-build-ubuntu (push) Waiting to run
Build X servers / drivers-build-ubuntu (push) Waiting to run
Build X servers / xserver-build-mingw32-ubuntu (push) Waiting to run
Build X servers / xserver-build-macos (push) Waiting to run
Build X servers / xserver-build-freebsd (push) Waiting to run
Build X servers / Release pushed tag (push) Blocked by required conditions
check PRs for merge conflicts / notify (push) Waiting to run
Some checks are pending
Build X servers / xserver-build-ubuntu (push) Waiting to run
Build X servers / drivers-build-ubuntu (push) Waiting to run
Build X servers / xserver-build-mingw32-ubuntu (push) Waiting to run
Build X servers / xserver-build-macos (push) Waiting to run
Build X servers / xserver-build-freebsd (push) Waiting to run
Build X servers / Release pushed tag (push) Blocked by required conditions
check PRs for merge conflicts / notify (push) Waiting to run
Fixes: https://github.com/X11Libre/xserver/issues/706 Signed-off-by: stefan11111 <stefan11111@shitposting.expert>
This commit is contained in:
parent
eb9a9e0708
commit
fd3af5fc7a
1 changed files with 4 additions and 4 deletions
|
|
@ -763,12 +763,12 @@ ProcXvQueryImageAttributes(ClientPtr client)
|
|||
|
||||
x_rpcbuf_t rpcbuf = { .swapped = client->swapped, .err_clear = TRUE };
|
||||
|
||||
// allocating for `offsets` as well as `pitches` in one block
|
||||
// both having CARD32 * num_planes (actually int32_t put into CARD32)
|
||||
INT32 *offsets = x_rpcbuf_reserve(&rpcbuf, 2 * num_planes * sizeof(INT32));
|
||||
/* allocating for `offsets` as well as `pitches` in one block */
|
||||
/* both having CARD32 * num_planes (actually int32_t put into CARD32) */
|
||||
int *offsets = x_rpcbuf_reserve(&rpcbuf, 2 * num_planes * sizeof(int));
|
||||
if (!offsets)
|
||||
return BadAlloc;
|
||||
INT32 *pitches = offsets + num_planes;
|
||||
int *pitches = offsets + num_planes;
|
||||
|
||||
width = stuff->width;
|
||||
height = stuff->height;
|
||||
|
|
|
|||
Loading…
Reference in a new issue