a patch and a question
Levente Farkas
lfarkas@mindmaker.hu
Thu Oct 12 05:36:00 GMT 2000
hi,
first of all I come back from my 3 week vacation and get the latest gcc
cvs and v3 seems to disappear or it just moved to libstdc++ ?
anyways there is a small bug in bitset (__thisword was redefined) this is
the patch against the old version:
----------------------
--- g++-v3/bits/std_bitset.h.lfarkas Thu Oct 12 14:16:18 2000
+++ g++-v3/bits/std_bitset.h Thu Oct 12 14:19:24 2000
@@ -287,7 +287,7 @@
// check subsequent words
__i++;
for ( ; __i < _Nw; __i++ ) {
- _WordT __thisword = _M_w[__i];
+ __thisword = _M_w[__i];
if ( __thisword != static_cast<_WordT>(0) ) {
// find byte within word
for ( size_t __j = 0; __j < sizeof(_WordT); __j++ ) {
----------------------
and this is against the new (if the new realy under libstdc++ ??):
----------------------
--- libstdc++/stl/bitset.lfarkas Thu Oct 12 14:14:24 2000
+++ libstdc++/stl/bitset Thu Oct 12 14:20:12 2000
@@ -328,7 +328,7 @@
// check subsequent words
__i++;
for ( ; __i < _Nw; __i++ ) {
- _WordT __thisword = _M_w[__i];
+ __thisword = _M_w[__i];
if ( __thisword != static_cast<_WordT>(0) ) {
// find byte within word
for ( size_t __j = 0; __j < sizeof(_WordT); __j++ ) {
----------------------
-- Levente
"The only thing worse than not knowing the truth is
ruining the bliss of ignorance."
More information about the Libstdc++
mailing list