[Lemon-commits] Alpar Juttner: Merge bugfix #420

Lemon HG hg at lemon.cs.elte.hu
Tue Apr 26 17:25:39 CEST 2011


details:   http://lemon.cs.elte.hu/hg/lemon/rev/4f9e5801224e
changeset: 1059:4f9e5801224e
user:      Alpar Juttner <alpar [at] cs.elte.hu>
date:      Tue Apr 26 17:25:00 2011 +0200
description:
	Merge bugfix #420

diffstat:

 lemon/maps.h      |  2 +-
 test/maps_test.cc |  3 +++
 2 files changed, 4 insertions(+), 1 deletions(-)

diffs (39 lines):

diff --git a/lemon/maps.h b/lemon/maps.h
--- a/lemon/maps.h
+++ b/lemon/maps.h
@@ -3252,7 +3252,7 @@
 
     virtual void add(const Key& key) {
       Parent::add(key);
-      unlace(key);
+      lace(key);
     }
 
     virtual void add(const std::vector<Key>& keys) {
diff --git a/test/maps_test.cc b/test/maps_test.cc
--- a/test/maps_test.cc
+++ b/test/maps_test.cc
@@ -641,6 +641,7 @@
 
     const int num = 10;
     Graph g;
+    Ibm map0(g, true);
     std::vector<Item> items;
     for (int i = 0; i < num; ++i) {
       items.push_back(g.addNode());
@@ -722,6 +723,7 @@
 
     const int num = 10;
     Graph g;
+    Iim map0(g, 0);
     std::vector<Item> items;
     for (int i = 0; i < num; ++i) {
       items.push_back(g.addNode());
@@ -772,6 +774,7 @@
 
     const int num = 10;
     Graph g;
+    Ivm map0(g, 0.0);
     std::vector<Item> items;
     for (int i = 0; i < num; ++i) {
       items.push_back(g.addNode());



More information about the Lemon-commits mailing list