From f639409533755e5c84c2934576ce72d4db0ffe8d Mon Sep 17 00:00:00 2001 From: Sergey Lyubka Date: Wed, 5 Mar 2014 01:59:32 +0000 Subject: [PATCH] warning squashed in convert_uri_to_file_name() --- mongoose.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mongoose.c b/mongoose.c index 0e7b4d37..6de5190a 100644 --- a/mongoose.c +++ b/mongoose.c @@ -2216,7 +2216,7 @@ static int convert_uri_to_file_name(struct connection *conn, char *buf, // Perform virtual hosting rewrites if (rewrites != NULL && domain != NULL) { const char *colon = strchr(domain, ':'); - int domain_len = colon == NULL ? strlen(domain) : colon - domain; + int domain_len = colon == NULL ? strlen(domain) : (int) (colon - domain); while ((rewrites = next_option(rewrites, &a, &b)) != NULL) { if (a.len > 1 && a.ptr[0] == '@' && a.len == domain_len + 1 &&