stdcxx-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Farid Zaripov" <Far...@kyiv.vdiweb.com>
Subject RE: [PATCH] errors passing void* to munmap, mprotect
Date Tue, 01 Aug 2006 08:42:29 GMT
> -----Original Message-----
> From: Martin Sebor [mailto:sebor@roguewave.com] 
> Sent: Tuesday, August 01, 2006 1:09 AM
> To: stdcxx-dev@incubator.apache.org
> Subject: [PATCH] errors passing void* to munmap, mprotect
> 
[...]

> Unless someone (Farid?) sees a problem with the patch I will 
> commit it tomorrow.

  I see no problem, unless I suggest to remove the unnecessary casting
_rw_table to Pair*:

+static Pair*  _rw_table           = 0; // pointer to the table

+    Pair* const begin = _RWSTD_REINTERPRET_CAST (Pair*, _rw_table);

+    const size_t index =
+        size_t (it - _RWSTD_REINTERPRET_CAST (Pair*, _rw_table));

+    Pair* end = _RWSTD_REINTERPRET_CAST (Pair*, _rw_table) +
_rw_stats.blocks_;

Farid.

Mime
View raw message