Path: utzoo!yunexus!geac!syntron!jtsv16!uunet!seismo!sundc!pitstop!sun!oliveb!felix!dhw68k!bob From: bob@dhw68k.cts.com (Bob Best) Newsgroups: comp.os.minix Subject: Fix for latest console.c under 1.1 cg Summary: found the culprit, a most unlikely suspect Keywords: minix compiler bug Message-ID: <13744@dhw68k.cts.com> Date: 24 Oct 88 17:54:39 GMT Article-I.D.: dhw68k.13744 Reply-To: bob@dhw68k.cts.com (Bob Best) Organization: Wolfskill residence; Anaheim, CA (USA) Lines: 31 I managed to locate the problem statement that generated an error under the version 1.1 cg. Why the compiler couldn't handle it is anyone's guess. As Andy mentioned, we seem to be dealing with an obsolete and 'rotten' compiler. Of course, for some of us, it's all we've got! Good luck! Bob ---------------- *** console.c~ Mon Oct 24 10:31:11 1988 --- console.c Mon Oct 24 10:34:06 1988 *************** *** 345,351 **** tp->tty_org + (SCR_LINES - 1) * LINE_WIDTH * 2 - 2, vid_mask - 1, (SCR_LINES - 1) * LINE_WIDTH); ! tp->tty_org = vid_mask + 1 - SCR_LINES*LINE_WIDTH * 2; } else tp->tty_org -= 2 * LINE_WIDTH; offset = tp->tty_org; --- 345,352 ---- tp->tty_org + (SCR_LINES - 1) * LINE_WIDTH * 2 - 2, vid_mask - 1, (SCR_LINES - 1) * LINE_WIDTH); ! tp->tty_org = vid_mask; /* fix for 1.1 cg (bob@dhw68k.cts.com) */ ! tp->tty_org += 1 - SCR_LINES*LINE_WIDTH * 2; } else tp->tty_org -= 2 * LINE_WIDTH; offset = tp->tty_org; -- Bob Best uucp: ...{trwrb,hplabs}!felix!dhw68k!bob InterNet: bob@dhw68k.cts.com