# HG changeset patch # User jwe # Date 1076194058 0 # Node ID 2be826ada7bb88359e50c00c7ea26efb4d16c05e # Parent 7cb3b220d0f8c09776f1cf3c02d6cc7d66ad9909 [project @ 2004-02-07 22:47:38 by jwe] diff -r 7cb3b220d0f8 -r 2be826ada7bb src/ov-struct.cc --- 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;