From 146f4d8e25149631f9418c70ab47db77bfca8c42 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Sun, 10 Mar 2024 16:35:27 +0200 Subject: Fix signedness warning --- lib/optparse/optparse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- cgit v1.2.3