[HarfBuzz] harfbuzz: Branch 'master' - 2 commits

Behdad Esfahbod behdad at kemper.freedesktop.org
Tue May 14 12:31:16 PDT 2013


 src/hb-set-private.hh |    2 +-
 test/api/test-set.c   |    4 ++++
 2 files changed, 5 insertions(+), 1 deletion(-)

New commits:
commit fa3d0a0ce60a9fcf2b7f906dec916463b1319eda
Author: Behdad Esfahbod <behdad at behdad.org>
Date:   Tue May 14 15:30:55 2013 -0400

    Bug 64476 - Typo in hb_set_t.get_min()
    
    Fixes previous commit's test.

diff --git a/src/hb-set-private.hh b/src/hb-set-private.hh
index d59f248..adfa88f 100644
--- a/src/hb-set-private.hh
+++ b/src/hb-set-private.hh
@@ -297,7 +297,7 @@ struct hb_set_t
   {
     for (unsigned int i = 0; i < ELTS; i++)
       if (elts[i])
-	for (unsigned int j = 0; i < BITS; j++)
+	for (unsigned int j = 0; j < BITS; j++)
 	  if (elts[i] & (1 << j))
 	    return i * BITS + j;
     return SENTINEL;
commit dfbd115e6c1a86a5f1b8d15200672f1e9410b5de
Author: Behdad Esfahbod <behdad at behdad.org>
Date:   Tue May 14 15:30:17 2013 -0400

    [test] Add test for hb_set_get_min() bug
    
    Failing now.
    
    Bug 64476 - Typo in hb_set_t.get_min()

diff --git a/test/api/test-set.c b/test/api/test-set.c
index b9e7ef8..90d0437 100644
--- a/test/api/test-set.c
+++ b/test/api/test-set.c
@@ -64,6 +64,10 @@ test_set_basic (void)
   hb_set_clear (s);
   test_empty (s);
 
+  hb_set_add (s, 33000);
+  test_not_empty (s);
+  hb_set_clear (s);
+
   hb_set_add_range (s, 10, 29);
   test_not_empty (s);
   g_assert (hb_set_has (s, 13));



More information about the HarfBuzz mailing list