Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!mit-eddie!uw-beaver!cornell!rochester!udel!princeton!idacrd!mac From: mac@idacrd.UUCP (Bob McGwier) Newsgroups: comp.sys.ibm.pc Subject: Re: tc bug? Message-ID: <289@idacrd.UUCP> Date: Mon, 28-Sep-87 12:33:34 EDT Article-I.D.: idacrd.289 Posted: Mon Sep 28 12:33:34 1987 Date-Received: Tue, 29-Sep-87 06:26:17 EDT References: <236@occrsh.ATT.COM> Organization: idacrd, princeton, nj Lines: 25 in article <236@occrsh.ATT.COM>, uucp@occrsh.UUCP says: > > This has no doubt been discussed before, and I wasn't paying attention :-) > > unsigned int xyz = 0x8000 ; > > main() > { > printf("xyz=%d\n", xyz) ; > } > > ...gives me -32768. Really screws things up trying to read files in 32k > chunks. I think the problem is yours and not tc. change printf("xyz=%u\n",xyz); You are passing printf a number and telling it that it is a SIGNED integer with the %d. Bob