summaryrefslogtreecommitdiff
path: root/expand.c
diff options
context:
space:
mode:
Diffstat (limited to 'expand.c')
-rw-r--r--expand.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/expand.c b/expand.c
index 372a0f5..c91416b 100644
--- a/expand.c
+++ b/expand.c
@@ -205,7 +205,7 @@ variable_expand_string (char *line, char *string, long length)
p1 = strchr (p, '$');
- o = variable_buffer_output (o, p, p1 != 0 ? p1 - p : strlen (p) + 1);
+ o = variable_buffer_output (o, p, p1 != 0 ? (unsigned int)(p1 - p) : strlen (p) + 1);
if (p1 == 0)
break;