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

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.

View File

@ -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