Fix incorrect comparison

This commit is contained in:
Johan Mattsson 2023-08-13 13:16:55 +02:00 committed by GitHub
parent 966b8c33c7
commit 25f4611a24
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -616,7 +616,7 @@ int EdgeCompare( const void *elem1, const void *elem2 ) {
if ( d1 < d2 ) {
return -1;
}
if ( d2 > d1 ) {
if ( d2 < d1 ) {
return 1;
}
return 0;