From 221723b519f92c9b283507da73788edae6cf929b Mon Sep 17 00:00:00 2001 From: ponchio Date: Tue, 18 Jan 2005 22:46:58 +0000 Subject: [PATCH] Small changes. --- apps/nexus/remapping.cpp | 1 - apps/nexus/vpartition.h | 4 ++++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/apps/nexus/remapping.cpp b/apps/nexus/remapping.cpp index e474c06f..ddcd9fa5 100644 --- a/apps/nexus/remapping.cpp +++ b/apps/nexus/remapping.cpp @@ -148,7 +148,6 @@ void nxs::Remap(VChain &chain, unsigned int newpatch = patch_remap[patch]; assert(newpatch < index.size()); - assert(newpatch >= 0); remap[i] = newpatch; BlockEntry &entry = index[newpatch]; entry.size++; diff --git a/apps/nexus/vpartition.h b/apps/nexus/vpartition.h index 22fa5530..0471240c 100644 --- a/apps/nexus/vpartition.h +++ b/apps/nexus/vpartition.h @@ -24,6 +24,9 @@ History $Log: not supported by cvs2svn $ +Revision 1.2 2004/12/04 13:24:28 ponchio +Fixed a couple of memory leak... + Revision 1.1 2004/11/30 22:50:30 ponchio Level 0. @@ -56,6 +59,7 @@ class VPartition: public std::vector { for(unsigned int i = 0; i < part.size(); i++) push_back(part[i]); Init(); + return *this; } public: void Init();