summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOliver Kiddle <opk@zsh.org>2026-10-09 23:44:43 +0200
committerOliver Kiddle <opk@zsh.org>2026-10-09 23:44:43 +0200
commit6d600a9edec55686cf50628f660490e74305cf48 (patch)
tree4c8798d2fc504e46a9823fc4f783c50322bd0106
parent55156: fix Solaris compiler build error (diff)
downloadzsh-6d600a9edec55686cf50628f660490e74305cf48.tar
zsh-6d600a9edec55686cf50628f660490e74305cf48.tar.gz
zsh-6d600a9edec55686cf50628f660490e74305cf48.tar.bz2
zsh-6d600a9edec55686cf50628f660490e74305cf48.tar.lz
zsh-6d600a9edec55686cf50628f660490e74305cf48.tar.xz
zsh-6d600a9edec55686cf50628f660490e74305cf48.tar.zst
zsh-6d600a9edec55686cf50628f660490e74305cf48.zip
55202: fix for direct array index assignments
-rw-r--r--ChangeLog2
-rw-r--r--Src/params.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index bee740d28..296bc689b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
2026-10-09 Oliver Kiddle <opk@zsh.org>
+ * 55202: Src/params.c: fix for direct array index assignments
+
* 55156: Src/params.c: fix Solaris compiler build error
2026-09-28 tiandic <2323748675@qq.com>
diff --git a/Src/params.c b/Src/params.c
index 920027a2c..99f23366a 100644
--- a/Src/params.c
+++ b/Src/params.c
@@ -3411,7 +3411,7 @@ assignaparam(char *s, char **val, int flags)
/*
* This is an ordinary array with key / value pairs.
*/
- int maxlen, origlen, nextind;
+ size_t maxlen, origlen, nextind;
char **fullval, **origptr;
zlong *subscripts = (zlong *)zhalloc(arrlen(val) * sizeof(zlong));
zlong *iptr = subscripts;