summaryrefslogtreecommitdiff
path: root/src/Xfixes.c
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2022-11-19 11:18:11 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2022-11-19 12:00:21 -0800
commit26cd44cc3d2b5db5caa42d9203a866f12c039980 (patch)
tree64a1a7d009f890c3c0d334ca0c06545277efcd0a /src/Xfixes.c
parent2047abb224051d578a6a320b776a7e8a969a980c (diff)
Handle 63 of 63 -Wshorten-64-to-32 warnings from clang
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'src/Xfixes.c')
-rw-r--r--src/Xfixes.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/Xfixes.c b/src/Xfixes.c
index 2ce8106..4e5c247 100644
--- a/src/Xfixes.c
+++ b/src/Xfixes.c
@@ -272,11 +272,11 @@ XFixesEventToWire(Display *dpy, XEvent *event, xEvent *wire)
aevent = (XFixesSelectionNotifyEvent *) event;
awire->type = aevent->type | (aevent->send_event ? 0x80 : 0);
awire->subtype = aevent->subtype;
- awire->window = aevent->window;
- awire->owner = aevent->owner;
- awire->selection = aevent->selection;
- awire->timestamp = aevent->timestamp;
- awire->selectionTimestamp = aevent->selection_timestamp;
+ awire->window = (CARD32) aevent->window;
+ awire->owner = (CARD32) aevent->owner;
+ awire->selection = (CARD32) aevent->selection;
+ awire->timestamp = (CARD32) aevent->timestamp;
+ awire->selectionTimestamp = (CARD32) aevent->selection_timestamp;
return True;
}
case XFixesCursorNotify: {
@@ -286,10 +286,10 @@ XFixesEventToWire(Display *dpy, XEvent *event, xEvent *wire)
aevent = (XFixesCursorNotifyEvent *) event;
awire->type = aevent->type | (aevent->send_event ? 0x80 : 0);
awire->subtype = aevent->subtype;
- awire->window = aevent->window;
- awire->timestamp = aevent->timestamp;
- awire->cursorSerial = aevent->cursor_serial;
- awire->name = aevent->cursor_name;
+ awire->window = (CARD32) aevent->window;
+ awire->timestamp = (CARD32) aevent->timestamp;
+ awire->cursorSerial = (CARD32) aevent->cursor_serial;
+ awire->name = (CARD32) aevent->cursor_name;
}
}
return False;