From: Gerd Moellmann Date: Fri, 26 Oct 2001 11:39:33 +0000 (+0000) Subject: (XScreenNumberOfScreen): Fix struct to pointer X-Git-Tag: emacs-21.2~450 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=8a41e34fae278df6b5c62c5aef904c9283d9b0bd;p=emacs.git (XScreenNumberOfScreen): Fix struct to pointer comparison. --- diff --git a/src/ChangeLog b/src/ChangeLog index 631b10dad9a..461978de98a 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 cc778d833e3..6421ef8ef0b 100644 --- a/src/xfns.c +++ b/src/xfns.c @@ -4963,7 +4963,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;