changeset 4771:d6ddaf79ea6a

(XScreenNumberOfScreen): Move assignments out of declaration for (dpy, dpyscr). Some older versions of MIPS compilers miscompile this expression.
author Brian Fox <bfox@gnu.org>
date Wed, 22 Sep 1993 18:07:44 +0000
parents 987685f55edd
children 2c6033bfb871
files src/xfns.c
diffstat 1 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/xfns.c	Tue Sep 21 07:51:53 1993 +0000
+++ b/src/xfns.c	Wed Sep 22 18:07:44 1993 +0000
@@ -3502,10 +3502,13 @@
 XScreenNumberOfScreen (scr)
     register Screen *scr;
 {
-  register Display *dpy = scr->display;
-  register Screen *dpyscr = dpy->screens;
+  register Display *dpy;
+  register Screen *dpyscr;
   register int i;
 
+  dpy = scr->display;
+  dpyscr = dpy->screens;
+
   for (i = 0; i < dpy->nscreens; i++, dpyscr++)
     if (scr == dpyscr)
       return i;