🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by Doug Schmidt Fri, 02 Dec 1988 07:40
Small bug in libg++
#1550
Author: 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.
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads