Wrong number of input arguments detected in Gateway
Reported by Aditya Puranik
BUG DESCRIPTION:
----------------
Upon trying to use the Scilab Gateway example foo6.c as referenced in API_SCILAB getting started guide. (https://help.scilab.org/docs/6.0.0/fr_FR/api_scilab_getting_started.html) I always get the error: wrong number of input arguments. foo6() expects 2 input arguments.
I printed out the number of input arguments detected by foo6() and it is wrong.
ERROR LOG:
----------
foo6: Wrong number of input argument(s): 2 expected.
HOW TO REPRODUCE THE BUG:
-------------------------
[c, d] = foo6([2,%pi], [%t, %f])
OTHER INFORMATION:
------------------
I printed out the value of "nin" and it turned out
Scierror(77, _("%s: Wrong number of input argument(s): %d expected. Got %d.\n"), fname, 2, non);
[c, d] = foo6([2,%pi], [%t, %f])
foo6: Wrong number of input argument(s): 2 expected. Got 10067408.