changeset 1696:937366359b50

[project @ 1996-01-07 02:07:35 by jwe]
author jwe
date Sun, 07 Jan 1996 02:09:32 +0000
parents 6f5e1c4dd4cb
children 597c3ca9f6e8
files liboctave/CDiagMatrix.cc liboctave/dDiagMatrix.cc
diffstat 2 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/liboctave/CDiagMatrix.cc	Sun Jan 07 01:56:53 1996 +0000
+++ b/liboctave/CDiagMatrix.cc	Sun Jan 07 02:09:32 1996 +0000
@@ -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;
--- a/liboctave/dDiagMatrix.cc	Sun Jan 07 01:56:53 1996 +0000
+++ b/liboctave/dDiagMatrix.cc	Sun Jan 07 02:09:32 1996 +0000
@@ -70,7 +70,7 @@
       return *this;
     }
 
-  for (int i = beg; i < end; i++)
+  for (int i = beg; i <= end; i++)
     elem (i, i) = val;
 
   return *this;