1
0
mirror of https://github.com/bol-van/zapret.git synced 2025-05-24 22:32:58 +03:00

ip2net: fix comparision

This commit is contained in:
bol-van 2022-06-17 10:39:09 +03:00
parent 76ae74eedd
commit c2754cc347
9 changed files with 1 additions and 1 deletions
binaries
aarch64
arm
mips32r1-lsb
mips32r1-msb
mips64r2-msb
ppc
x86
x86_64
ip2net

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]; aa = ((uint64_t*)((struct in6_addr *)a)->s6_addr)[1];
bb = ((uint64_t*)((struct in6_addr *)b)->s6_addr)[1]; bb = ((uint64_t*)((struct in6_addr *)b)->s6_addr)[1];
#endif #endif
return aa < bb ? -1 : aa < bb ? 1 : 0; return aa < bb ? -1 : aa > bb ? 1 : 0;
} }
#else #else