changeset 4752:2be826ada7bb

[project @ 2004-02-07 22:47:38 by jwe]
author jwe
date Sat, 07 Feb 2004 22:47:38 +0000
parents 7cb3b220d0f8
children 9f0ce1536368
files src/ov-struct.cc
diffstat 1 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/ov-struct.cc	Sat Feb 07 22:42:04 2004 +0000
+++ b/src/ov-struct.cc	Sat Feb 07 22:47:38 2004 +0000
@@ -896,9 +896,7 @@
     {
       if (is_cell)
 	{
-	  int f_el = f_dv.numel ();
-
-	  if (f_el != c_dv(dim))
+	  if (f_dv.numel () != c_dv(dim))
 	    {
 	      error ("cell2struct: numel (FIELD) != size (CELL, DIM)");
 
@@ -979,6 +977,9 @@
 
 	  // Field is either cell or character matrix.
 
+	  // XXX FIXME XX -- this could be simplified if we had
+	  // cellstr and iscellstr functions available.
+
 	  bool field_is_cell = field.is_cell ();
 
 	  Cell field_cell;