Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!nbires!hao!hplabs!pyramid!decwrl!glacier!navajo!rokicki From: rokicki@navajo.STANFORD.EDU (Tomas Rokicki) Newsgroups: net.lang.c Subject: Bug in 4.3 C Message-ID: <809@navajo.STANFORD.EDU> Date: Sat, 30-Aug-86 19:19:06 EDT Article-I.D.: navajo.809 Posted: Sat Aug 30 19:19:06 1986 Date-Received: Mon, 1-Sep-86 18:58:09 EDT Organization: Stanford University Lines: 20 [ `---\- For the plane eater ] /* * This program should print out: * -1 0 * because the subtraction should be done with signed * arithmetic; it did under 4.2 bsd on a VAX. Now, * however, under 4.3 bsd, it prints out * * -1 1 * * Anyone know to whom I should post this bug? */ main () { register unsigned char a=1, b=2 ; printf("%d %d\n", ((int)(a))-((int)(b)), ((int)(a))-(int)(b))) > 1 ) ; } --tom