diff options
| author | Peter Stephenson <pws@zsh.org> | 2016-09-07 11:48:55 +0100 |
|---|---|---|
| committer | Peter Stephenson <pws@zsh.org> | 2016-09-07 11:50:00 +0100 |
| commit | c47c35caccfdd43db76668998382a67e1ad30054 (patch) | |
| tree | 6bcf823cd083ee5221e815288c174d2707bf1234 /Src/module.c | |
| parent | 39217: fix error name generation with GCC. (diff) | |
| download | zsh-c47c35caccfdd43db76668998382a67e1ad30054.tar zsh-c47c35caccfdd43db76668998382a67e1ad30054.tar.gz zsh-c47c35caccfdd43db76668998382a67e1ad30054.tar.bz2 zsh-c47c35caccfdd43db76668998382a67e1ad30054.tar.lz zsh-c47c35caccfdd43db76668998382a67e1ad30054.tar.xz zsh-c47c35caccfdd43db76668998382a67e1ad30054.tar.zst zsh-c47c35caccfdd43db76668998382a67e1ad30054.zip | |
39218: Fix module feature enables with math functions.
If they were present parameters were miscounted.
Diffstat (limited to 'Src/module.c')
| -rw-r--r-- | Src/module.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Src/module.c b/Src/module.c index 368254c29..46a7d7746 100644 --- a/Src/module.c +++ b/Src/module.c @@ -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)) |
