Return-Path: Delivered-To: apmail-stdcxx-dev-archive@www.apache.org Received: (qmail 24346 invoked from network); 1 Feb 2008 19:16:03 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 1 Feb 2008 19:16:03 -0000 Received: (qmail 5093 invoked by uid 500); 1 Feb 2008 19:15:54 -0000 Delivered-To: apmail-stdcxx-dev-archive@stdcxx.apache.org Received: (qmail 5078 invoked by uid 500); 1 Feb 2008 19:15:54 -0000 Mailing-List: contact dev-help@stdcxx.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@stdcxx.apache.org Delivered-To: mailing list dev@stdcxx.apache.org Received: (qmail 5069 invoked by uid 99); 1 Feb 2008 19:15:54 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Feb 2008 11:15:54 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [208.30.140.160] (HELO moroha.roguewave.com) (208.30.140.160) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Feb 2008 19:15:41 +0000 Received: from nebula.bco.roguewave.com ([10.70.3.27]) by moroha.roguewave.com (8.13.6/8.13.6) with ESMTP id m11JFWI1002368 for ; Fri, 1 Feb 2008 19:15:32 GMT Message-ID: <47A36FD5.50704@roguewave.com> Date: Fri, 01 Feb 2008 12:15:33 -0700 From: Martin Sebor Organization: Rogue Wave Software, Inc. User-Agent: Thunderbird 2.0.0.9 (X11/20071115) MIME-Version: 1.0 To: dev@stdcxx.apache.org Subject: Re: [PATCH] STDCXX-423 References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Scott, I think we might need some help understanding how this change is intended to solve the problem with the padding bits. FYI, unsigned char is the only type that may not have padding bits so I'm not sure I see how it could help. Martin Scott Zhong wrote: > Index: etc/config/src/LIMITS.cpp > =================================================================== > --- etc/config/src/LIMITS.cpp (revision 616446) > +++ etc/config/src/LIMITS.cpp (working copy) > @@ -216,8 +216,10 @@ > { > unsigned bits = 0; > > - for (unsigned char c = '\01'; c; c <<= 1, ++bits); > + unsigned char pc = '\02'; // arbitrary value not equal to '\01' > > + for (unsigned char c = '\01'; c; c <<= 1) { if(c == pc) break; pc = > c; bits++; } > + > printf ("#define _RWSTD_CHAR_BIT %2u\n", bits); > > return bits;