summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2022-08-13 16:04:06 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2022-08-13 16:04:06 -0700
commitc125d8bac5b1629e36069c13a13919e542dc3a9b (patch)
tree57ce3a24d7bfaac57d24d5afc3a78435bf1367cd
parentfc54ce8a6f248e465a518f807dd5e51657b6e535 (diff)
Add cast to clear -Wsign-compare warning
ico.c: In function ‘do_ico_window’: ico.c:1084:30: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (xev.xclient.data.l[0] == wm_delete_window) ^~ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r--ico.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ico.c b/ico.c
index aa9819e..09ecf1e 100644
--- a/ico.c
+++ b/ico.c
@@ -1081,7 +1081,7 @@ do_ico_window(void *ptr)
#ifdef DEBUG
printf("thread %x message\n", xthread_self());
#endif
- if (xev.xclient.data.l[0] == wm_delete_window)
+ if ((Atom) xev.xclient.data.l[0] == wm_delete_window)
do_it = False;
else
XBell (dpy, 0);