From fbd5ceb2aa7a5d65ccf1dd3f061400ed59d9a6e5 Mon Sep 17 00:00:00 2001 From: Gerd Moellmann Date: Fri, 26 Oct 2001 11:38:23 +0000 Subject: [PATCH] (XScreenNumberOfScreen): Fix struct to pointer comparison. --- src/ChangeLog | 5 +++++ src/xfns.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) 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; -- 2.39.5