mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-03 22:32:12 +02:00
39218: Fix module feature enables with math functions.
If they were present parameters were miscounted.
This commit is contained in:
parent
8d18872817
commit
c47c35cacc
2 changed files with 5 additions and 0 deletions
|
@ -1,5 +1,8 @@
|
|||
2016-09-07 Peter Stephenson <p.stephenson@samsung.com>
|
||||
|
||||
* 39218: Src/module.c: fix feature enables with math functions
|
||||
present. This caused parameters to be miscounted.
|
||||
|
||||
* 39217: Src/Modules/system.mdd: adapt zsh.mdd to avoid problems
|
||||
with GCC preprocessor in error names.
|
||||
|
||||
|
|
|
@ -3350,6 +3350,8 @@ setfeatureenables(Module m, Features f, int *e)
|
|||
if (f->mf_size) {
|
||||
if (setmathfuncs(m->node.nam, f->mf_list, f->mf_size, e))
|
||||
ret = 1;
|
||||
if (e)
|
||||
e += f->mf_size;
|
||||
}
|
||||
if (f->pd_size) {
|
||||
if (setparamdefs(m->node.nam, f->pd_list, f->pd_size, e))
|
||||
|
|
Loading…
Reference in a new issue