Fix AVL comparisons

This commit is contained in:
Howard Chu 2003-04-17 04:36:42 +00:00
parent 67d800e85b
commit d7a1eb0ea2
3 changed files with 5 additions and 5 deletions

View file

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

View file

@ -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;
}
/*

View file

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