diff --git a/src/xfns.c b/src/xfns.c index ebb631716eb..906ff3d664f 100644 --- a/src/xfns.c +++ b/src/xfns.c @@ -2303,7 +2303,7 @@ hack_wm_protocols (f, widget) if ((XGetWindowProperty (dpy, w, FRAME_X_DISPLAY_INFO (f)->Xatom_wm_protocols, - 0L, 100L, False, XA_ATOM, + (long)0, (long)100, False, XA_ATOM, &type, &format, &nitems, &bytes_after, (unsigned char **) &atoms) == Success)