From: Fabian Keil Date: Fri, 17 Apr 2009 11:35:28 +0000 (+0000) Subject: Fix compiler warning. X-Git-Tag: v_3_0_13~123 X-Git-Url: http://www.privoxy.org/gitweb/@default-cgi@/faq/%22https:/@default-cgi@show-url-info?a=commitdiff_plain;h=053a74506fc88a5398d27c2afc295315de8f07c9;p=privoxy.git Fix compiler warning. --- diff --git a/filters.c b/filters.c index c5d8d6ea..9758e1e2 100644 --- a/filters.c +++ b/filters.c @@ -1,4 +1,4 @@ -const char filters_rcs[] = "$Id: filters.c,v 1.115 2009/04/17 11:29:18 fabiankeil Exp $"; +const char filters_rcs[] = "$Id: filters.c,v 1.116 2009/04/17 11:34:34 fabiankeil Exp $"; /********************************************************************* * * File : $Source: /cvsroot/ijbswa/current/filters.c,v $ @@ -40,6 +40,9 @@ const char filters_rcs[] = "$Id: filters.c,v 1.115 2009/04/17 11:29:18 fabiankei * * Revisions : * $Log: filters.c,v $ + * Revision 1.116 2009/04/17 11:34:34 fabiankeil + * Style cosmetics for the IPv6 code. + * * Revision 1.115 2009/04/17 11:29:18 fabiankeil * Compile fix for BSD libc. * @@ -1120,7 +1123,7 @@ int acl_addr(const char *aspec, struct access_control_addr *aca) * This should be true for all architectures or solved * by the link layer. */ - mask_data[i] = ~((1 << (8 - masklength)) - 1); + mask_data[i] = (uint8_t)~((1 << (8 - masklength)) - 1); masklength = 0; } }