summaryrefslogtreecommitdiff
path: root/src/output.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/output.c')
-rw-r--r--src/output.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/output.c b/src/output.c
index 56ac1f42..7b2d6de3 100644
--- a/src/output.c
+++ b/src/output.c
@@ -579,9 +579,9 @@ divert_text (struct obstack *obs, const char *text, int length, int line)
appropriate. */
bool
shipout_string_trunc (struct obstack *obs, const char *str, size_t len,
- int *max_len)
+ size_t *max_len)
{
- int max = max_len ? *max_len : INT_MAX;
+ size_t max = max_len ? *max_len : INT_MAX;
if (len == SIZE_MAX)
len = strlen (str);