Return-Path: Delivered-To: apmail-incubator-stdcxx-dev-archive@www.apache.org Received: (qmail 48400 invoked from network); 1 Aug 2006 08:42:31 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 1 Aug 2006 08:42:31 -0000 Received: (qmail 14030 invoked by uid 500); 1 Aug 2006 08:42:31 -0000 Delivered-To: apmail-incubator-stdcxx-dev-archive@incubator.apache.org Received: (qmail 13977 invoked by uid 500); 1 Aug 2006 08:42:30 -0000 Mailing-List: contact stdcxx-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: stdcxx-dev@incubator.apache.org Delivered-To: mailing list stdcxx-dev@incubator.apache.org Received: (qmail 13966 invoked by uid 99); 1 Aug 2006 08:42:30 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Aug 2006 01:42:30 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [212.82.213.172] (HELO exkiv.kyiv.vdiweb.com) (212.82.213.172) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Aug 2006 01:42:29 -0700 Content-class: urn:content-classes:message Subject: RE: [PATCH] errors passing void* to munmap, mprotect MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Date: Tue, 1 Aug 2006 11:42:29 +0300 X-MimeOLE: Produced By Microsoft Exchange V6.5 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [PATCH] errors passing void* to munmap, mprotect Thread-Index: Aca09QT1nJWsJ8XXSd+cd9ffBC3CfAAR2kRw From: "Farid Zaripov" To: X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N > -----Original Message----- > From: Martin Sebor [mailto:sebor@roguewave.com]=20 > Sent: Tuesday, August 01, 2006 1:09 AM > To: stdcxx-dev@incubator.apache.org > Subject: [PATCH] errors passing void* to munmap, mprotect >=20 [...] > Unless someone (Farid?) sees a problem with the patch I will=20 > commit it tomorrow. I see no problem, unless I suggest to remove the unnecessary casting _rw_table to Pair*: +static Pair* _rw_table =3D 0; // pointer to the table + Pair* const begin =3D _RWSTD_REINTERPRET_CAST (Pair*, _rw_table); + const size_t index =3D + size_t (it - _RWSTD_REINTERPRET_CAST (Pair*, _rw_table)); + Pair* end =3D _RWSTD_REINTERPRET_CAST (Pair*, _rw_table) + _rw_stats.blocks_; Farid.