From fc246ec985890f8256f6e03cdf74c86b9b51ff2a Mon Sep 17 00:00:00 2001 From: Garret Rieger Date: Thu, 7 Jun 2018 15:54:19 -0700 Subject: [PATCH] [subset] Move variable declaration out of loop. --- test/api/test-subset-glyf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/api/test-subset-glyf.c b/test/api/test-subset-glyf.c index d6f6ddea0..e4440e0fe 100644 --- a/test/api/test-subset-glyf.c +++ b/test/api/test-subset-glyf.c @@ -232,10 +232,10 @@ test_subset_glyf_strip_hints_invalid (void) 'A', 'B', 'C', 'D', 'E', 'X', 'Y', 'Z', '1', '2', '3', '@', '_', '%', '&', ')', '*', '$', '!' }; - for (unsigned int i = 0; i < sizeof (text) / sizeof (hb_codepoint_t); i++) + unsigned int i; + for (i = 0; i < sizeof (text) / sizeof (hb_codepoint_t); i++) { hb_set_add (codepoints, text[i]); - // hb_set_add (codepoints_drop_hints, text[i]); } hb_subset_input_t *input = hb_subset_test_create_input (codepoints);