[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #65140] incorrect value for nargin for command
From: |
Petter |
Subject: |
[Octave-bug-tracker] [bug #65140] incorrect value for nargin for command line script with bytecode interpreter |
Date: |
Wed, 10 Jan 2024 15:08:12 -0500 (EST) |
Follow-up Comment #2, bug#65140 (group octave):
Oh ye the assumption in the code is that nargin is always zero for scripts.
Fix nargin for scripts in bytecode interpreter (bug #65140)
So that nargin calls in scripts properly matches argv or amount of function
arguments, instead of always zero.
* stack-frame.cc: Set nargin
* test/compile/bytecode.tst: Do new test
* test/compile/bytecode_script_nargin.m: New test file
* test/compile/module.mk: Add new file
(file #55553)
_______________________________________________________
Additional Item Attachment:
File name: octave_33150.patch Size:4 KB
<https://file.savannah.gnu.org/file/octave_33150.patch?file_id=55553>
AGPL NOTICE
These attachments are served by Savane. You can download the corresponding
source code of Savane at
https://git.savannah.nongnu.org/cgit/administration/savane.git/snapshot/savane-674318988de1484e7bf702bfab8336fb35fb4650.tar.gz
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?65140>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/