changeset 8313:86bc7785bf8b

handle correctly empty cs-lists in assignment
author Jaroslav Hajek <highegg@gmail.com>
date Tue, 11 Nov 2008 22:06:43 +0100
parents e9d29ff98f30
children eb0fb4a9859c
files src/ChangeLog src/pt-assign.cc
diffstat 2 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/ChangeLog	Tue Nov 11 14:34:37 2008 -0500
+++ b/src/ChangeLog	Tue Nov 11 22:06:43 2008 +0100
@@ -1,3 +1,7 @@
+2008-11-11  Jaroslav Hajek <highegg@gmail.com>
+
+	* pt-assign.cc: Fix handling of empty cs-lists in assignment LHS.
+
 2008-11-11  John W. Eaton  <jwe@octave.org>
 
 	* lex.l (<MATRIX_START>{S}+): Don't insert separator if next token
--- a/src/pt-assign.cc	Tue Nov 11 14:34:37 2008 -0500
+++ b/src/pt-assign.cc	Tue Nov 11 22:06:43 2008 +0100
@@ -434,7 +434,7 @@
 		  else
 		    error ("some elements undefined in return list");
 		}
-	      else
+	      else if (nel == 1)
 		{
 		  if (k < n)
 		    {