From cdbb3f39e0e093cfa92f628a6bcfa7df234c97f2 Mon Sep 17 00:00:00 2001 From: Daniel James Date: Sat, 10 May 2008 13:52:14 +0000 Subject: [PATCH] Fix a clumsy error. [SVN r45261] --- test/helpers/list.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/helpers/list.hpp b/test/helpers/list.hpp index 07e5daab..7a234d69 100644 --- a/test/helpers/list.hpp +++ b/test/helpers/list.hpp @@ -161,7 +161,7 @@ namespace test void push_front(value_type const& v) { data_.first_ = new node(v, data_.first_); - if(data_.size_) data_.last_ptr_ = &(*data_.last_ptr_)->next_; + if(!data_.size_) data_.last_ptr_ = &(*data_.last_ptr_)->next_; ++data_.size_; }