Mercurial > mxe-octave
changeset 7058:20fc643a33fb
of-optim: Adapt for change in Octave 10
* src/of-optim-2-list.patch: Add patch.
* dist-files.mk: Add new file to list.
author | Markus Mützel <markus.muetzel@gmx.de> |
---|---|
date | Wed, 07 Feb 2024 20:36:26 +0100 |
parents | 3d17e2695bfb |
children | 373bfff29bf3 |
files | dist-files.mk src/of-optim-2-list.patch |
diffstat | 2 files changed, 21 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/dist-files.mk Wed Feb 07 11:06:40 2024 -0500 +++ b/dist-files.mk Wed Feb 07 20:36:26 2024 +0100 @@ -518,6 +518,7 @@ of-odepkg-3-deprecated.patch \ of-odepkg.mk \ of-optim-1-nargin.patch \ + of-optim-2-list.patch \ of-optim.mk \ of-optiminterp.mk \ of-quaternion-1-cross-fixes.patch \
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/of-optim-2-list.patch Wed Feb 07 20:36:26 2024 +0100 @@ -0,0 +1,20 @@ +# HG changeset patch +# User Markus Mützel <markus.muetzel@gmx.de> +# Date 1707334233 -3600 +# Wed Feb 07 20:30:33 2024 +0100 +# Node ID 2254b71b9c11bba122eec621354b017a1d619f65 +# Parent d5e565611871e3554bf5a3b808b12dac739fe1e2 +Adapt for changes in Octave 10 + +diff -r d5e565611871 -r 2254b71b9c11 src/__max_nargin_optim__.cc +--- a/src/__max_nargin_optim__.cc Sun Jul 09 14:11:23 2023 +0200 ++++ b/src/__max_nargin_optim__.cc Wed Feb 07 20:30:33 2024 +0100 +@@ -71,7 +71,7 @@ + else { + + retval = octave_value +- (fcn.user_function_value ()->parameter_list ()->length ()); ++ (fcn.user_function_value ()->parameter_list ()->size ()); + } + + return retval;