summaryrefslogtreecommitdiff
path: root/xbiff.c
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2019-06-01 19:41:25 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2019-06-01 19:41:25 -0700
commit5c28b6eeb241162894999aa36b335eb2441b2c1e (patch)
tree37510249f7f0dd275824294b5829ca0ca133221f /xbiff.c
parente18a25f27313d90ec8da4057b8413b6937bee1c2 (diff)
Fix -Wsign-compare warning in quit() function
Reported by gcc 7.3: xbiff.c: In function ‘quit’: xbiff.c:55:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] event->xclient.data.l[0] != wm_delete_window) { ^ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'xbiff.c')
-rw-r--r--xbiff.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xbiff.c b/xbiff.c
index a5ecdef..5fcdb51 100644
--- a/xbiff.c
+++ b/xbiff.c
@@ -52,7 +52,7 @@ static Atom wm_delete_window;
static void quit (Widget w, XEvent *event, String *params, Cardinal *num_params)
{
if (event->type == ClientMessage &&
- event->xclient.data.l[0] != wm_delete_window) {
+ ((Atom) event->xclient.data.l[0]) != wm_delete_window) {
XBell (XtDisplay(w), 0);
return;
}