From: Gunter Knauf Date: Fri, 17 Jul 2009 22:34:16 +0000 (+0000) Subject: trial to fix a win64 compiler warning. X-Git-Tag: curl-7_19_6~56 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=95c2ab77e7f043952b38068f4869cf0ee881d0c8;p=curl trial to fix a win64 compiler warning. --- diff --git a/src/main.c b/src/main.c index b3c470f44..58e5bf960 100644 --- a/src/main.c +++ b/src/main.c @@ -3056,11 +3056,11 @@ static int parseconfig(const char *filename, /* We got a valid filename - get the directory part */ char *lastdirchar = strrchr(filebuffer, '\\'); if (lastdirchar) { - int remaining; + size_t remaining; *lastdirchar = 0; /* If we have enough space, build the RC filename */ remaining = sizeof(filebuffer) - strlen(filebuffer); - if ((int)strlen(CURLRC) < remaining - 1) { + if (strlen(CURLRC) < remaining - 1) { snprintf(lastdirchar, remaining, "%s%s", DIR_CHAR, CURLRC); /* Don't bother checking if it exists - we do