Path: utzoo!attcan!uunet!lll-winken!lll-ncis!lll-lcc!ames!haven!adm!smoke!gwyn From: gwyn@smoke.BRL.MIL (Doug Gwyn ) Newsgroups: comp.lang.c Subject: Re: BIT Counting: C programming problem Message-ID: <9366@smoke.BRL.MIL> Date: 14 Jan 89 12:21:10 GMT References: <34389@bbn.COM) <1171@goofy.megatest.UUCP> <755@infmx.UUCP> <2787@epimass.EPI.COM> <11025@rpp386.Dallas.TX.US> Reply-To: gwyn@brl.arpa (Doug Gwyn (VLD/VMB) ) Organization: Ballistic Research Lab (BRL), APG, MD. Lines: 6 In article <11025@rpp386.Dallas.TX.US> jfh@rpp386.Dallas.TX.US (John F. Haugh II) writes: -That wasn't what he wrote, he wrote - num &= num - 1 , count += 1; - ^-- oops. Excuse my asking, but what's supposed to be the problem with that?