Commit 505c7ea2 authored by Andrew Tridgell's avatar Andrew Tridgell

add a cast to initialisation of mask

parent 9add51f1
......@@ -34,7 +34,7 @@ static int match_hostname(char *host, char *tok)
static int match_address(char *addr, char *tok)
{
char *p;
unsigned long a, t, mask = ~0;
unsigned long a, t, mask = (unsigned long)~0;
if (!addr || !*addr) return 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment