# HG changeset patch # User rubidium # Date 1186174019 0 # Node ID fdc041ac51903392cc25c2418b4092a91117b191 # Parent 222641b84fc405b80dc6dd3ed86ce1a3daade45e (svn r10774) -Fix (r10768): obiwan pleased us with a visit. diff -r 222641b84fc4 -r fdc041ac5190 src/oldpool.h --- a/src/oldpool.h Fri Aug 03 20:18:38 2007 +0000 +++ b/src/oldpool.h Fri Aug 03 20:46:59 2007 +0000 @@ -253,7 +253,7 @@ */ static T *AllocateRaw(uint &first) { - uint last_minus_one = Tpool->GetSize(); + uint last_minus_one = Tpool->GetSize() - 1; for (T *t = Tpool->Get(first); t != NULL; t = (t->index < last_minus_one) ? Tpool->Get(t->index + 1U) : NULL) { if (!t->IsValid()) {