Fix stupid bug in bsearch cmp function!

This commit is contained in:
Behdad Esfahbod 2010-09-28 16:23:28 -04:00
parent 6fca4c18c4
commit 9dc45401c0
1 changed files with 1 additions and 1 deletions

View File

@ -58,7 +58,7 @@ struct Record
{
inline int cmp (hb_tag_t b) const {
hb_tag_t a = tag;
return b < a ? -1 : b == a ? 0 : -1;
return b < a ? -1 : b == a ? 0 : +1;
}
inline bool sanitize (hb_sanitize_context_t *c, void *base) {