changeset 40325:2eb0395c1697

(XScreenNumberOfScreen): Fix struct to pointer comparison.
author Gerd Moellmann <gerd@gnu.org>
date Fri, 26 Oct 2001 11:38:03 +0000
parents fdcfb565034f
children e84641eccb21
files src/xfns.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/xfns.c	Fri Oct 26 09:51:14 2001 +0000
+++ b/src/xfns.c	Fri Oct 26 11:38:03 2001 +0000
@@ -4980,7 +4980,7 @@
   int i;
 
   for (i = 0; i < dpy->nscreens; ++i)
-    if (scr == dpy->screens[i])
+    if (scr == dpy->screens + i)
       break;
 
   return i;