summaryrefslogtreecommitdiffstats
path: root/term.c
diff options
context:
space:
mode:
Diffstat (limited to 'term.c')
-rw-r--r--term.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/term.c b/term.c
index 4a9e93d1..668d4709 100644
--- a/term.c
+++ b/term.c
@@ -277,7 +277,8 @@ const struct termact *termacts = __termacts;
static size_t
arg_width(const struct mdoc_arg *arg)
{
- size_t len, i, v;
+ size_t v;
+ int i, len;
assert(*arg->value);
if (0 == strcmp(*arg->value, "indent"))
@@ -285,7 +286,7 @@ arg_width(const struct mdoc_arg *arg)
if (0 == strcmp(*arg->value, "indent-two"))
return(INDENT * 2);
- len = strlen(*arg->value);
+ len = (int)strlen(*arg->value);
assert(len > 0);
for (i = 0; i < len - 1; i++)