462fb2
diff --git a/parse.y b/parse.y
462fb2
index 9a78d0c..7df7d99 100644
462fb2
--- a/parse.y
462fb2
+++ b/parse.y
462fb2
@@ -4993,7 +4993,8 @@ decode_prompt_string (string)
462fb2
   struct dstack save_dstack;
462fb2
   int last_exit_value, last_comsub_pid;
462fb2
 #if defined (PROMPT_STRING_DECODE)
462fb2
-  int result_size, result_index;
462fb2
+  size_t result_size;
462fb2
+  int result_index;
462fb2
   int c, n, i;
462fb2
   char *temp, octal_string[4];
462fb2
   struct tm *tm;  
462fb2
diff --git a/subst.c b/subst.c
462fb2
index 9f15f0b..e5ffd03 100644
462fb2
--- a/subst.c
462fb2
+++ b/subst.c
462fb2
@@ -644,11 +644,13 @@ unquoted_substring (substr, string)
462fb2
 INLINE char *
462fb2
 sub_append_string (source, target, indx, size)
462fb2
      char *source, *target;
462fb2
-     int *indx, *size;
462fb2
+     int *indx;
462fb2
+     size_t *size;
462fb2
 {
462fb2
   if (source)
462fb2
     {
462fb2
-      int srclen, n;
462fb2
+      int n;
462fb2
+      size_t srclen;
462fb2
 
462fb2
       srclen = STRLEN (source);
462fb2
       if (srclen >= (int)(*size - *indx))
462fb2
@@ -7676,7 +7678,7 @@ expand_word_internal (word, quoted, isexp, contains_dollar_at, expanded_somethin
462fb2
   char *istring;
462fb2
 
462fb2
   /* The current size of the above object. */
462fb2
-  int istring_size;
462fb2
+  size_t istring_size;
462fb2
 
462fb2
   /* Index into ISTRING. */
462fb2
   int istring_index;
462fb2
diff --git a/subst.h b/subst.h
462fb2
index b06e8c2..fc66faf 100644
462fb2
--- a/subst.h
462fb2
+++ b/subst.h
462fb2
@@ -127,7 +127,7 @@ extern int do_word_assignment __P((WORD_DESC *));
462fb2
    of space allocated to TARGET.  SOURCE can be NULL, in which
462fb2
    case nothing happens.  Gets rid of SOURCE by free ()ing it.
462fb2
    Returns TARGET in case the location has changed. */
462fb2
-extern char *sub_append_string __P((char *, char *, int *, int *));
462fb2
+extern char *sub_append_string __P((char *, char *, int *, size_t *));
462fb2
 
462fb2
 /* Append the textual representation of NUMBER to TARGET.
462fb2
    INDEX and SIZE are as in SUB_APPEND_STRING. */
462fb2
diff --git a/y.tab.c b/y.tab.c
462fb2
index d702554..31faa4a 100644
462fb2
--- a/y.tab.c
462fb2
+++ b/y.tab.c
462fb2
@@ -7280,7 +7280,8 @@ decode_prompt_string (string)
462fb2
   struct dstack save_dstack;
462fb2
   int last_exit_value, last_comsub_pid;
462fb2
 #if defined (PROMPT_STRING_DECODE)
462fb2
-  int result_size, result_index;
462fb2
+  size_t result_size;
462fb2
+  int result_index;
462fb2
   int c, n, i;
462fb2
   char *temp, octal_string[4];
462fb2
   struct tm *tm;  
462fb2
-- 
462fb2
2.5.5
462fb2