From cd4d7664e16d9c4aff002c4df295a9d06ab48332 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Thu, 29 Oct 2026 16:15:21 -0700 Subject: [PATCH] [test] Avoid Windows small macro in raster paint test Windows headers define small as char, so the local extent variable breaks compilation in both MSVC CI configurations. Rename it to small_extents. Reproduced the failure with the macro defined and verified that the same compilation succeeds after the rename. The MinGW cross-compiler syntax check and full Meson suite pass (274 tests). Assisted-by: OpenAI Codex --- src/test-raster-paint.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/test-raster-paint.cc b/src/test-raster-paint.cc index be5024318..76346424a 100644 --- a/src/test-raster-paint.cc +++ b/src/test-raster-paint.cc @@ -31,7 +31,7 @@ main () hb_always_assert (paint); hb_paint_funcs_t *funcs = hb_raster_paint_get_funcs (paint); hb_raster_extents_t root = {0, 0, 64, 64, 0}; - hb_raster_extents_t small = {0, 0, 4, 4, 0}; + hb_raster_extents_t small_extents = {0, 0, 4, 4, 0}; hb_raster_extents_t large = {0, 0, 8192, 8192, 0}; hb_raster_paint_set_extents (paint, &root); @@ -40,7 +40,7 @@ main () hb_always_assert (paint->surface_stack.length == 1); int64_t initial_budget = paint->pixel_remaining; - hb_raster_paint_set_extents (paint, &small); + hb_raster_paint_set_extents (paint, &small_extents); for (unsigned i = 0; i < 2; i++) { /* Both a newly allocated group and a cached group clear the root area. */