mirror of
https://github.com/bol-van/zapret.git
synced 2024-12-23 14:53:18 +00:00
ip2net: fix comparision
This commit is contained in:
parent
76ae74eedd
commit
c2754cc347
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -92,7 +92,7 @@ static int cmp6(const void * a, const void * b, void *arg)
|
||||
aa = ((uint64_t*)((struct in6_addr *)a)->s6_addr)[1];
|
||||
bb = ((uint64_t*)((struct in6_addr *)b)->s6_addr)[1];
|
||||
#endif
|
||||
return aa < bb ? -1 : aa < bb ? 1 : 0;
|
||||
return aa < bb ? -1 : aa > bb ? 1 : 0;
|
||||
}
|
||||
|
||||
#else
|
||||
|
Loading…
Reference in New Issue
Block a user