diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | Src/subst.c | 5 |
2 files changed, 7 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog index e4940aa29..fe3dc939a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2011-05-23 Peter Stephenson <pws@csr.com> + * 29351: Src/subst.c: need to cast non-integer + stdarg arguments to integer to fit % prototype. + * unposted: Config/version.mk: 4.3.11-dev-4. * unposted: Completion/Unix/Command/_go: typo @@ -14786,5 +14789,5 @@ ***************************************************** * This is used by the shell to define $ZSH_PATCHLEVEL -* $Revision: 1.5319 $ +* $Revision: 1.5320 $ ***************************************************** diff --git a/Src/subst.c b/Src/subst.c index 5628c11d2..f9c48404b 100644 --- a/Src/subst.c +++ b/Src/subst.c @@ -2892,7 +2892,7 @@ paramsubst(LinkList l, LinkNode n, char **str, int qt, int ssub) length += alen - offset; if (length < 0) { zerr("substring expression: %d < %d", - length + offset, offset); + (int)(length + offset), (int)offset); return NULL; } } else @@ -2942,7 +2942,8 @@ paramsubst(LinkList l, LinkNode n, char **str, int qt, int ssub) } if (length < 0) { zerr("substring expression: %d < %d", - length + given_offset, given_offset); + (int)(length + given_offset), + (int)given_offset); return NULL; } } |