[evolution-data-server] Fix a GCC compiler warning



commit b3362ddfed227b1d557f2f0a271380d7c53fdd2c
Author: Milan Crha <mcrha redhat com>
Date:   Tue Jun 7 11:17:48 2016 +0200

    Fix a GCC compiler warning
    
    left shift of negative value [-Wshift-negative-value]

 libedataserver/e-proxy.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libedataserver/e-proxy.c b/libedataserver/e-proxy.c
index 40530b7..02a7d05 100644
--- a/libedataserver/e-proxy.c
+++ b/libedataserver/e-proxy.c
@@ -454,7 +454,7 @@ ep_manipulate_ipv4 (ProxyHostAddr *host_addr,
                        mask->s_addr = 0;
                        addr->s_addr = 0;
                } else {
-                       mask->s_addr = htonl (~0 << width);
+                       mask->s_addr = htonl (~0U << width);
                        addr->s_addr &= mask->s_addr;
                }
        } else {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]