Path: utzoo!utgpu!watmath!uunet!tut.cis.ohio-state.edu!SUN.COM!limes From: limes@SUN.COM (Greg Limes) Newsgroups: gnu.emacs.bug Subject: bug in setting sunview cursors Message-ID: <8901122244.AA01214@ouroborous.sun.com> Date: 12 Jan 89 22:44:39 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 28 When running Gnu Emacs 18.52 inside Emacstool under SunOS 4.0 on a Sun4, the mouse cursor is not properly displayed; the left half of the cursor is duplicated onto the right half. This is caused by a statement using undefined evaluation order in sunfns.c as shown by the context diff below. *** /home/gnuemacs/src/sunfns.c- Sat May 21 10:28:18 1988 --- /home/gnuemacs/src/sunfns.c Thu Jan 12 14:31:44 1989 *************** *** 237,243 **** cp = XSTRING(Data)->data; p = CursorData; i = 16; ! while(--i >= 0) *p++ = (*cp++ << 8) | (*cp++); CurrentCursor = NewCursor; } win_setcursor(win_fd, &CurrentCursor); --- 237,246 ---- cp = XSTRING(Data)->data; p = CursorData; i = 16; ! while(--i >= 0) { ! *p++ = (cp[0] << 8) | cp[1]; ! cp += 2; ! } CurrentCursor = NewCursor; } win_setcursor(win_fd, &CurrentCursor);