From 16f734366bf6214e4e2b16e6f4b72f9efbb004a5 Mon Sep 17 00:00:00 2001 From: Michael Stevens Date: Tue, 22 Mar 2005 19:44:40 +0000 Subject: [PATCH] Sloppy patch application missed out -1 [SVN r27767] --- include/boost/numeric/ublas/operation.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/boost/numeric/ublas/operation.hpp b/include/boost/numeric/ublas/operation.hpp index 6da49676..96664e0a 100644 --- a/include/boost/numeric/ublas/operation.hpp +++ b/include/boost/numeric/ublas/operation.hpp @@ -38,7 +38,7 @@ namespace boost { namespace numeric { namespace ublas { typedef typename V::size_type size_type; typedef typename V::value_type value_type; - for (size_type i = 0; i < e1.filled1 (); ++ i) { + for (size_type i = 0; i < e1.filled1 () -1; ++ i) { size_type begin = e1.index1_data () [i]; size_type end = e1.index1_data () [i + 1]; value_type t (v (i)); @@ -57,7 +57,7 @@ namespace boost { namespace numeric { namespace ublas { V &v, column_major_tag) { typedef typename V::size_type size_type; - for (size_type j = 0; j < e1.filled1 (); ++ j) { + for (size_type j = 0; j < e1.filled1 () -1; ++ j) { size_type begin = e1.index1_data () [j]; size_type end = e1.index1_data () [j + 1]; for (size_type i = begin; i < end; ++ i)