diff liboctave/CDiagMatrix.cc @ 1696:937366359b50

[project @ 1996-01-07 02:07:35 by jwe]
author jwe
date Sun, 07 Jan 1996 02:09:32 +0000 (1996-01-07)
parents 23aa282707e8
children 1281a23a34dd
line wrap: on
line diff
--- a/liboctave/CDiagMatrix.cc
+++ b/liboctave/CDiagMatrix.cc
@@ -99,7 +99,7 @@
       return *this;
     }
 
-  for (int i = beg; i < end; i++)
+  for (int i = beg; i <= end; i++)
     elem (i, i) = val;
 
   return *this;
@@ -114,7 +114,7 @@
       return *this;
     }
 
-  for (int i = beg; i < end; i++)
+  for (int i = beg; i <= end; i++)
     elem (i, i) = val;
 
   return *this;