]> git.eshelyaron.com Git - emacs.git/commitdiff
(XScreenNumberOfScreen): Fix struct to pointer
authorGerd Moellmann <gerd@gnu.org>
Fri, 26 Oct 2001 11:39:33 +0000 (11:39 +0000)
committerGerd Moellmann <gerd@gnu.org>
Fri, 26 Oct 2001 11:39:33 +0000 (11:39 +0000)
comparison.

src/ChangeLog
src/xfns.c

index 631b10dad9a3948352081e273820b1879b58bf6d..461978de98a270854ab7394047ca1a8b888931f9 100644 (file)
@@ -1,3 +1,8 @@
+2001-10-26  Gerd Moellmann  <gerd@gnu.org>
+
+       * xfns.c (XScreenNumberOfScreen): Fix struct to pointer
+       comparison.
+
 2001-10-25  Eli Zaretskii  <eliz@is.elta.co.il>
 
        * frame.c (Fframe_parameter): Fix last change.
index cc778d833e35e32f3e837ac28c40979da22d87d3..6421ef8ef0b70afb9f56161a01af198f9bf33321 100644 (file)
@@ -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;