fixed the fault in checking the number of arguments for variadic functions in hawk_rtx_evalcall()
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2024-05-02 23:57:31 +00:00
parent ca5ca2c3ce
commit b6a512f90f
2 changed files with 12 additions and 18 deletions

View File

@ -585,7 +585,7 @@ function main()
{
@local a, b;
@local a, b, f;
RSTART=99;
RLENGTH=99;
@ -652,6 +652,12 @@ function main()
tap_ensure (test10(1, 2, 3, 4, 5, 6, 7, 8, 9, 10), 55, @SCRIPTNAME, @SCRIPTLINE);
tap_ensure (test11("aa", "bb", "cc"), 0, @SCRIPTNAME, @SCRIPTLINE);
tap_ensure (test11("aa", "bb", "cc", "dd"), 1, @SCRIPTNAME, @SCRIPTLINE);
f = test11;
tap_ensure (f("aa", "bb", "cc", "dd"), 1, @SCRIPTNAME, @SCRIPTLINE);
f = test10
tap_ensure (f(1, 2, 3, 4, 5, 6, 7, 8, 9, 10), 55, @SCRIPTNAME, @SCRIPTLINE);
}
tap_end ();
}