From 02c8718fb74ea115de5f211fef4f15cd39453316 Mon Sep 17 00:00:00 2001 From: "Barak A. Pearlmutter" Date: Wed, 2 Apr 2014 12:53:36 +0100 Subject: [PATCH] Mixing signed and unsigned quantities in MIN() upset GCC's tender soul. --- src/encoding.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/encoding.c b/src/encoding.c index 773f08e..4b5fb08 100644 --- a/src/encoding.c +++ b/src/encoding.c @@ -26,7 +26,7 @@ build_hostname(char *buf, size_t buflen, size_t space; char *b; - space = MIN(maxlen, buflen) - strlen(topdomain) - 8; + space = MIN((size_t)maxlen, buflen) - strlen(topdomain) - 8; /* 8 = 5 max header length + 1 dot before topdomain + 2 safety */ if (!encoder->places_dots())