Skip to content

Commit

Permalink
Code beautification for cset 2c2301104caf (bug #66642).
Browse files Browse the repository at this point in the history
* cellfun.cc (Fcellfun, Farrayfun): Use is_undefined() function for clarity.
  • Loading branch information
Rik committed Jan 14, 2025
1 parent 50cad04 commit e98b01b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libinterp/corefcn/cellfun.cc
Original file line number Diff line number Diff line change
Expand Up @@ -666,7 +666,7 @@ v = cellfun (@@det, C); # 40% faster

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

for (int j = 0; j < num_to_copy; j++)
{
if (! tmp(j).is_defined ())
if (tmp(j).is_undefined ())
error ("arrayfun: function returned fewer than nargout values");
results[j](count) = tmp(j);
}
Expand Down

0 comments on commit e98b01b

Please sign in to comment.