diff src/ov.cc @ 6639:ed74670db09b

[project @ 2007-05-21 19:47:22 by jwe]
author jwe
date Mon, 21 May 2007 19:47:22 +0000
parents 1b8daf8c0397
children 3c64128e621c
line wrap: on
line diff
--- a/src/ov.cc	Mon May 21 19:24:19 2007 +0000
+++ b/src/ov.cc	Mon May 21 19:47:22 2007 +0000
@@ -1877,7 +1877,7 @@
   Octave_map m = arg.map_value ();
 
   if (! error_state
-      && m.length () == 2 && m.contains ("type") && m.contains ("subs"))
+      && m.nfields () == 2 && m.contains ("type") && m.contains ("subs"))
     {
       Cell& type = m.contents ("type");
       Cell& subs = m.contents ("subs");