From b783967242cce70e814fc817c49f08e4ec0599ce Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Thu, 12 Jan 2023 18:58:07 -0700 Subject: [PATCH] [test] Minor save glyph_count --- test/api/test-paint.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/api/test-paint.c b/test/api/test-paint.c index 93480f7b0..93607059f 100644 --- a/test/api/test-paint.c +++ b/test/api/test-paint.c @@ -643,7 +643,8 @@ main (int argc, char **argv) } hb_face_t *face = hb_test_open_font_file (TEST_GLYPHS); - for (unsigned int i = 1; i < hb_face_get_glyph_count (face); i++) + unsigned glyph_count = hb_face_get_glyph_count (face); + for (unsigned int i = 1; i < glyph_count; i++) { char buf[20]; snprintf (buf, 20, "test-%u", i);