From: Gerd Moellmann Date: Fri, 26 Oct 2001 11:38:23 +0000 (+0000) Subject: (XScreenNumberOfScreen): Fix struct to pointer X-Git-Tag: ttn-vms-21-2-B4~19146 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=fbd5ceb2aa7a5d65ccf1dd3f061400ed59d9a6e5;p=emacs.git (XScreenNumberOfScreen): Fix struct to pointer comparison. --- diff --git a/src/ChangeLog b/src/ChangeLog index 0083f018313..5de085b8a11 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2001-10-26 Gerd Moellmann + + * xfns.c (XScreenNumberOfScreen): Fix struct to pointer + comparison. + 2001-10-25 Eli Zaretskii * frame.c (Fframe_parameter): Fix last change. diff --git a/src/xfns.c b/src/xfns.c index 9773344c898..c20efb4392b 100644 --- a/src/xfns.c +++ b/src/xfns.c @@ -4980,7 +4980,7 @@ XScreenNumberOfScreen (scr) int i; for (i = 0; i < dpy->nscreens; ++i) - if (scr == dpy->screens[i]) + if (scr == dpy->screens + i) break; return i;