Skip to content

Commit e98b01b

Browse files
author
Rik
committed
Code beautification for cset 2c2301104caf (bug #66642).
* cellfun.cc (Fcellfun, Farrayfun): Use is_undefined() function for clarity.
1 parent 50cad04 commit e98b01b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libinterp/corefcn/cellfun.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -666,7 +666,7 @@ v = cellfun (@@det, C); # 40% faster
666666

667667
for (int j = 0; j < num_to_copy; j++)
668668
{
669-
if (! tmp(j).is_defined ())
669+
if (tmp(j).is_undefined ())
670670
error ("cellfun: function returned fewer than nargout values");
671671
results[j](count) = tmp(j);
672672
}
@@ -1427,7 +1427,7 @@ arrayfun (@@str2num, [1234],
14271427

14281428
for (int j = 0; j < num_to_copy; j++)
14291429
{
1430-
if (! tmp(j).is_defined ())
1430+
if (tmp(j).is_undefined ())
14311431
error ("arrayfun: function returned fewer than nargout values");
14321432
results[j](count) = tmp(j);
14331433
}

0 commit comments

Comments
 (0)