🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.g++.bug
Article #1550

Small bug in libg++

#1550
From: Doug Schmidt
Date: Fri, 02 Dec 1988 07:40
22 lines
1216 bytes
Hi,

  I believe the following is a small bug in the VHashTable.h.proto
file.  In the traversal member function ``get'' the test:

  if (pos <= 0)
    h->error("operation on null traverser");

should actually be:

  if (pos < 0)
    h->error("operation on null traverser");

Since otherwise the iterator gets a fatal error before it even begins!
VHashSet also has this problem, but VHashAssoc appears correct.

Doug
--
schmidt@ics.uci.edu (ARPA) |   Per me si va nella citta' dolente.
                           |   Per me si va nell'eterno dolore.
                           |   Per me si va tra la perduta gente.
                           |   Lasciate ogni speranza o voi ch'entrate.
Technical Details
Message-ID: <1030@paris.ics.uci.edu>
Path: arc1-ca.pugleaf.net!utzoo!telly!ddsw1!lll-winken!uunet!tut.cis.ohio-state.edu!cwjcc!mailrus!rutgers!ucsd!orion.cf.uci.edu!paris.ics.uci.edu!blanche.ics.uci.edu!schmidt

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!telly!ddsw1!lll-winken!uunet!tut.cis.ohio-state.edu!cwjcc!mailrus!rutgers!ucsd!orion.cf.uci.edu!paris.ics.uci.edu!blanche.ics.uci.edu!schmidt
From: schmidt@blanche.ics.uci.edu (Doug Schmidt)
Newsgroups: gnu.g++.bug
Subject: Small bug in libg++
Message-ID: <1030@paris.ics.uci.edu>
Date: 2 Dec 88 07:40:21 GMT
Sender: news@paris.ics.uci.edu
Reply-To: Doug Schmidt <schmidt@blanche.ics.uci.edu>
Distribution: gnu
Organization: University of California, Irvine - Dept of ICS
Lines: 21