diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2011-05-23 16:08:47 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2011-05-23 16:08:47 +0000 |
commit | 29d0aa8ef8d4a996505ec48f698895836a0f3b56 (patch) | |
tree | 9da7e5924e90ea33c1ed39f225ca843c907ce65a /Src | |
parent | e051cb908ffcddf82e5a2e6812272bdec0d236a3 (diff) | |
download | zsh-29d0aa8ef8d4a996505ec48f698895836a0f3b56.tar.gz zsh-29d0aa8ef8d4a996505ec48f698895836a0f3b56.tar.xz zsh-29d0aa8ef8d4a996505ec48f698895836a0f3b56.zip |
29351: casts needed to pass integers through stdarg
Diffstat (limited to 'Src')
-rw-r--r-- | Src/subst.c | 5 |
1 files changed, 3 insertions, 2 deletions
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; } } |