diff options
Diffstat (limited to 'lib/optparse')
-rw-r--r-- | lib/optparse/optparse.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/optparse/optparse.c b/lib/optparse/optparse.c index 07eaa4a..6f9e4bf 100644 --- a/lib/optparse/optparse.c +++ b/lib/optparse/optparse.c @@ -142,7 +142,7 @@ error_s(struct optparse *st, const char *msg, const char *s) { const char *p = strchr(s, '='); snprintf(st->errmsg, sizeof(st->errmsg), u8"%s ā ā%.*sā", msg, - (int)(p ? p - s : strlen(s)), s); + (int)(p ? (size_t)(p - s) : strlen(s)), s); return -1; } |