incubator-stdcxx-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Farid Zaripov" <Far...@kyiv.vdiweb.com>
Subject [PATCH] bitset.cc (STDCXX-297)
Date Fri, 06 Oct 2006 12:46:13 GMT
  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.

Mime
View raw message