X-Git-Url: https://tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Fsubnet_parse.c;h=d877c7fd1b2cdfc6db49038b9218c75fccb1600a;hb=dfed43f01b69fff92321d1194a6c7c7ba54ca2d0;hp=32b7e0a09a4de64c1af90dbcc713144fbed75578;hpb=0345a1468613e1ba4a4aa6dbbef44a26f1eb42d9;p=tinc diff --git a/src/subnet_parse.c b/src/subnet_parse.c index 32b7e0a0..d877c7fd 100644 --- a/src/subnet_parse.c +++ b/src/subnet_parse.c @@ -186,9 +186,7 @@ static int subnet_compare_ipv6(const subnet_t *a, const subnet_t *b) { } int subnet_compare(const subnet_t *a, const subnet_t *b) { - int result; - - result = a->type - b->type; + int result = (int)a->type - (int)b->type; if(result) { return result;