2
0
mirror of https://github.com/boostorg/ublas.git synced 2026-02-19 02:42:16 +00:00

Sloppy patch application missed out -1

[SVN r27767]
This commit is contained in:
Michael Stevens
2005-03-22 19:44:40 +00:00
parent e45e2d1792
commit 16f734366b

View File

@@ -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)