mirror of
https://git.code.sf.net/p/zsh/code
synced 2026-04-18 06:53:35 -04:00
54104: fix bug with packing strings into wordcode
This commit is contained in:
@@ -1,5 +1,8 @@
|
||||
2025-11-24 Oliver Kiddle <opk@zsh.org>
|
||||
|
||||
* 54104: Src/parse.c, Src/zsh.h: fix bug with packing strings
|
||||
into wordcode
|
||||
|
||||
* 54103: Src/builtin.c, Src/parse.c, Test/C02cond.ztst:
|
||||
support > and < comparisons via the test builtin
|
||||
|
||||
|
||||
@@ -446,7 +446,9 @@ ecstrcode(char *s)
|
||||
long cmp;
|
||||
|
||||
for (pp = &ecstrs; (p = *pp); ) {
|
||||
if (!(cmp = p->nfunc - ecnfunc) && !(cmp = (((long)p->hashval) - ((long)val))) && !(cmp = strcmp(p->str, s))) {
|
||||
if (!(cmp = p->nfunc - ecnfunc) &&
|
||||
!(cmp = (int) (p->hashval - val)) &&
|
||||
!(cmp = strcmp(p->str, s))) {
|
||||
/* Re-use the existing string. */
|
||||
return p->offs;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user