Make sure hdb gets signed chars for len comparison

This commit is contained in:
Howard Chu 2004-07-18 12:29:52 +00:00
parent af5ab4f196
commit 26b4758938

View File

@ -517,8 +517,8 @@ hdb_dup_compare(
const DBT *usrkey,
const DBT *curkey )
{
char *u = (char *)&(((diskNode *)(usrkey->data))->nrdnlen);
char *c = (char *)&(((diskNode *)(curkey->data))->nrdnlen);
signed char *u = (signed char *)&(((diskNode *)(usrkey->data))->nrdnlen);
signed char *c = (signed char *)&(((diskNode *)(curkey->data))->nrdnlen);
int rc, i;
/* data is not aligned, cannot compare directly */