Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.org!news.glorb.com!postnews.google.com!news2.google.com!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local2.nntp.dca.giganews.com!nntp.earthlink.com!news.earthlink.com.POSTED!not-for-mail NNTP-Posting-Date: Fri, 16 Sep 2011 17:00:25 -0500 Message-ID: <4E73C6FB.617C@mindspring.com> Date: Fri, 16 Sep 2011 18:00:27 -0400 From: pete Reply-To: pfiland@mindspring.com Organization: PF X-Mailer: Mozilla 3.04Gold (WinNT; I) MIME-Version: 1.0 Newsgroups: comp.lang.c,comp.lang.c++ Subject: Re: datatype for bit flags References: <87k4994fkd.fsf@bazspaz.fatphil.org> <930e767b-26f0-4123-836d-64dac1f47cfb@d2g2000vbk.googlegroups.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 9 X-Usenet-Provider: http://www.giganews.com NNTP-Posting-Host: 4.156.228.129 X-Trace: sv3-3SHjo/VBWjQD4d71Dw4WnK504NLotZg7tlCnZDeNIKlqLtANvHcCLoHgavoNLbRoznGWXu9UIg4eS8Z!HaBfkX3vFzYNAuke5hlp8W1wjRo5C7CX27TD2AYvF3BUK04HSgqV+aQgWa+2wPq2ARYr0WOfnCrf!rpTtKZw0g8U= X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 X-Original-Bytes: 1370 Xref: x330-a1.tempe.blueboxinc.net comp.lang.c:10355 comp.lang.c++:10204 Jorgen Grahn wrote: > In this case the problem didn't call for signedness, so I'd use > 'unsigned'. (unsigned) would also be my default choice for bitwise operations. -- pete