mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-31 20:19:34 -05:00
Fix AVL comparisons
This commit is contained in:
parent
67d800e85b
commit
d7a1eb0ea2
3 changed files with 5 additions and 5 deletions
|
|
@ -29,7 +29,7 @@ ainfo_type_cmp(
|
|||
{
|
||||
const AttributeDescription *desc = v_desc;
|
||||
const AttrInfo *a = v_a;
|
||||
return desc - a->ai_desc;
|
||||
return (unsigned)desc - (unsigned)a->ai_desc;
|
||||
}
|
||||
|
||||
static int
|
||||
|
|
@ -39,7 +39,7 @@ ainfo_cmp(
|
|||
)
|
||||
{
|
||||
const AttrInfo *a = v_a, *b = v_b;
|
||||
return a->ai_desc - b->ai_desc;
|
||||
return (unsigned)a->ai_desc - (unsigned)b->ai_desc;
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
|||
|
|
@ -161,7 +161,7 @@ ldap_back_conn_cmp(
|
|||
/* For shared sessions, conn is NULL. Only explicitly
|
||||
* bound sessions will have non-NULL conn.
|
||||
*/
|
||||
return lc1->conn - lc2->conn;
|
||||
return (unsigned)lc1->conn - (unsigned)lc2->conn;
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@ ainfo_type_cmp(
|
|||
{
|
||||
const AttributeDescription *desc = v_desc;
|
||||
const AttrInfo *a = v_a;
|
||||
return desc - a->ai_desc;
|
||||
return (unsigned)desc - (unsigned)a->ai_desc;
|
||||
}
|
||||
|
||||
static int
|
||||
|
|
@ -39,7 +39,7 @@ ainfo_cmp(
|
|||
)
|
||||
{
|
||||
const AttrInfo *a = v_a, *b = v_b;
|
||||
return a->ai_desc - b->ai_desc;
|
||||
return (unsigned)a->ai_desc - (unsigned)b->ai_desc;
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
|||
Loading…
Reference in a new issue