diff liboctave/Array.cc @ 6553:af5025cb0f2b

[project @ 2007-04-20 15:37:19 by jwe]
author jwe
date Fri, 20 Apr 2007 15:37:20 +0000
parents 25f3fb4a6f1b
children e236f1b0a221
line wrap: on
line diff
--- a/liboctave/Array.cc
+++ b/liboctave/Array.cc
@@ -2569,7 +2569,7 @@
 	  for (octave_idx_type i = 0; i < rhs_len; i++)
 	    lhs.elem (i) = rhs.elem (i);
 	}
-      else if (rhs_len != 1)
+      else if (rhs_len != lhs_len)
 	(*current_liboctave_error_handler)
 	  ("A(:) = X: A must be the same size as X");
     }