Below is a small patch to resolve issue STDCXX-297:

Index: bitset.cc
===================================================================
--- bitset.cc   (revision 453570)
+++ bitset.cc   (working copy)
@@ -52,7 +52,7 @@
 
     // compute the number of bytes occupied by `bits'
     const _RWSTD_SIZE_T __nbytes =
-        (__maxbits + sizeof *__bits * _RWSTD_CHAR_BIT - 1) /
_RWSTD_CHAR_BIT;
+        (__maxbits + _RWSTD_CHAR_BIT - 1) / _RWSTD_CHAR_BIT;
 
     _RWSTD_MEMSET (__bits, 0, __nbytes);
 

Farid.

Reply via email to