Return to BSD News archive
Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!simtel!vtc.tacom.army.mil!agis!news2.net99.net!news.cais.net!newsfeed.internetmci.com!news.mathworks.com!zombie.ncsc.mil!cs.umd.edu!not-for-mail From: torek@elf.bsdi.com (Chris Torek) Newsgroups: comp.unix.bsd.bsdi.misc Subject: Re: Major bug? (probably programmer error :) Date: 6 Sep 1995 10:02:34 -0700 Organization: Berkeley Software Design, Inc. Lines: 14 Message-ID: <42kk7a$aqj@elf.bsdi.com> References: <42ff8m$b3d@clarknet.clark.net> <VIXIE.95Sep4112251@wisdom.vix.com> <42fpad$rie@clarknet.clark.net> <42g9sk$9ee@elf.bsdi.com> Reply-To: torek@bsdi.com NNTP-Posting-Host: elf.bsdi.com In article <42g9sk$9ee@elf.bsdi.com> I wrote: >... If ULONG_MAX is 0xffffffffffffffff and sizeof(b) is 6UL, >on this platform, -1L * sizeof(b) will be 0xfffffffffffffff0 >or 18446744073709551600 (i.e., ULONG_MAX + 1 - 6). This might >occur on, say, a DEC Alpha. The idea here is right, but the numbers are a bit off. For some reason I subtracted 16 instead of 6, so add ten to each of those ridiculously long sums. -- In-Real-Life: Chris Torek, Berkeley Software Design Inc Berkeley, CA Domain: torek@bsdi.com +1 510 549 1145 `... if we wish to count lines of code, we should not regard them as ``lines produced'' but as ``lines spent.'' ' --Edsger Dijkstra