diff liboctave/Sparse.cc @ 5869:6a23ee71dd86

[project @ 2006-06-29 18:04:20 by jwe]
author jwe
date Thu, 29 Jun 2006 18:04:21 +0000
parents 22e23bee74c8
children 802aec2b1a2e
line wrap: on
line diff
--- a/liboctave/Sparse.cc	Thu Jun 29 06:39:20 2006 +0000
+++ b/liboctave/Sparse.cc	Thu Jun 29 18:04:21 2006 +0000
@@ -59,7 +59,7 @@
 
       // Ok, If we've gotten here, we're in trouble.. Have to create a 
       // new element in the sparse array. This' gonna be slow!!!
-      if (c[ncols+1] == nzmx)
+      if (c[ncols] == nzmx)
 	{
 	  (*current_liboctave_error_handler)
 	    ("Sparse::SparseRep::elem (octave_idx_type, octave_idx_type): sparse matrix filled");