changeset 14999:1316bfc6e260 stable

Fix think-o in 4315a39da4c9
author Jordi Gutiérrez Hermoso <jordigh@octave.org>
date Sat, 21 Jul 2012 10:23:00 -0400
parents 93583f8853b4
children 4328e28414aa a4e94933fed3
files liboctave/sparse-dmsolve.cc
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/liboctave/sparse-dmsolve.cc
+++ b/liboctave/sparse-dmsolve.cc
@@ -49,7 +49,7 @@
 
   // Cast to uint64 to handle overflow in this multiplication
   if (octave_uint64 (nr)*octave_uint64 (nc) < octave_uint64 (maxnz))
-    nz = nr*nz;
+    nz = nr*nc;
   else
     nz = maxnz;