Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83 (MC830713); site tut.UUCP Path: utzoo!linus!philabs!cmcl2!seismo!mcvax!enea!tut!jty From: jty@tut.UUCP (Jyrki Yli-Nokari) Newsgroups: net.sources.bugs Subject: DBELL life bug fix Message-ID: <213@tut.UUCP> Date: Tue, 30-Jul-85 09:45:57 EDT Article-I.D.: tut.213 Posted: Tue Jul 30 09:45:57 1985 Date-Received: Fri, 2-Aug-85 08:02:52 EDT Organization: Tampere Univ. of Technology, Finland Lines: 34 D. Bell's game of life don't run on a 4.2bsd Sun. The game seems to start up fine, but doesn't accept any input. The bug was in io.c function tty_char() which returns character as integer. Problem was that the order of bytes within word is different in VAX and Sun. function tty_char should read(2) the character to char ch; not int ch; and cast it upon return. diff io.c.orig io.c follows: 83c83 < int ch; /* char to return */ --- > char ch; /* char to return */ 103c103 < return(ch &= 0x7f); --- > return((int)(ch & 0x7f)); PS. The life is GREAT! Try also ;rules 1357 02468 and some small figure. -- ...mcvax!tut!jty ! I know all about FORTH. Jyrki Yli-Nokari ! I saw a TV-program about it once N 61 26' E 23 50' ! (I also love Carl Barks) +358 31 162590, home +358 31 178833 !