summaryrefslogtreecommitdiff
path: root/Src/subst.c
diff options
context:
space:
mode:
Diffstat (limited to 'Src/subst.c')
-rw-r--r--Src/subst.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Src/subst.c b/Src/subst.c
index 484b55b4d..ea2c50bde 100644
--- a/Src/subst.c
+++ b/Src/subst.c
@@ -2102,7 +2102,7 @@ paramsubst(LinkList l, LinkNode n, char **str, int qt, int ssub)
{
int zero = 1;
/* Calculate length in possibly multibyte chars */
- int charlen = MB_METASTRLEN(val);
+ unsigned int charlen = MB_METASTRLEN(val);
if (charlen < fwidth) {
char *valprefend = val;