mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-25 17:01:17 +01:00
[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
This commit is contained in:
1 parent
404378164a
commit
cd4d7664e1
1 file changed
+2
-2
@@ -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. */
|
||||
|
||||
Reference in new issue
Block a user