mirror of
https://gitlab.freedesktop.org/xorg/lib/libx11.git
synced 2026-05-07 03:58:03 +02:00
xcb_io: Avoid datatype overflow on AMD64 and friends.
This commit is contained in:
parent
4ef6491afa
commit
da6bbca07c
1 changed files with 2 additions and 2 deletions
|
|
@ -214,7 +214,7 @@ static void process_responses(Display *dpy, int wait_for_first_event, xcb_generi
|
|||
}
|
||||
else if(req && xcb_poll_for_reply(dpy->xcb->connection, req->sequence, &reply, &error))
|
||||
{
|
||||
unsigned int sequence = req->sequence;
|
||||
uint64_t sequence = req->sequence;
|
||||
if(!reply)
|
||||
{
|
||||
dpy->xcb->pending_requests = req->next;
|
||||
|
|
@ -300,7 +300,7 @@ void _XSend(Display *dpy, const char *data, long size)
|
|||
* we need to remember to check later. */
|
||||
if(dpy->xcb->event_owner != XlibOwnsEventQueue || dpy->async_handlers)
|
||||
{
|
||||
unsigned int sequence;
|
||||
uint64_t sequence;
|
||||
for(sequence = dpy->xcb->last_flushed; sequence < dpy->request; ++sequence)
|
||||
{
|
||||
PendingRequest *req = malloc(sizeof(PendingRequest));
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue