From: Bill Stoddard Date: Thu, 6 Jul 2000 14:40:36 +0000 (+0000) Subject: Eliminate a couple of compiler warnings. I don't like casts but these X-Git-Tag: APACHE_2_0_ALPHA_5~174 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f24caae857b2de8408585fe7ea449dac7a6a75dd;p=thirdparty%2Fapache%2Fhttpd.git Eliminate a couple of compiler warnings. I don't like casts but these seem safe. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85774 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/filters/mod_include.c b/modules/filters/mod_include.c index 23ef67bd9e1..95283bee4ce 100644 --- a/modules/filters/mod_include.c +++ b/modules/filters/mod_include.c @@ -475,7 +475,7 @@ static int get_directive(ap_file_t *in, char *dest, size_t len, ap_pool_t *p) } /* now get directive */ while (1) { - if (d - dest == len) { + if (d - dest == (int)len) { return 1; } *d++ = ap_tolower(c); @@ -572,7 +572,7 @@ static void parse_string(request_rec *r, const char *in, char *out, /* zero-length variable name causes just the $ to be copied */ l = 1; } - l = (l > end_out - next) ? (end_out - next) : l; + l = ((int)l > end_out - next) ? (end_out - next) : l; memcpy(next, expansion, l); next += l; break;