From 9dc45401c07cb40114067cafbe286c63a9598f3b Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Tue, 28 Sep 2010 16:23:28 -0400 Subject: [PATCH] Fix stupid bug in bsearch cmp function! --- src/hb-ot-layout-common-private.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hb-ot-layout-common-private.hh b/src/hb-ot-layout-common-private.hh index edd08c8..ded683d 100644 --- a/src/hb-ot-layout-common-private.hh +++ b/src/hb-ot-layout-common-private.hh @@ -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) { -- 2.7.4