fix: ignore clang extension usage in ObjC (#8164)

* fix: ignore clang extension usage in ObjC

* Code review: adopt `kMaxCells` (324) directly.
This commit is contained in:
Cœur
2026-02-04 18:53:39 +01:00
committed by GitHub
parent 85b88c5f51
commit 1b04d45f26

View File

@@ -184,12 +184,12 @@ typedef struct PieceInfo
if (numCells > 0)
{
self.image = [NSImage imageWithSize:self.bounds.size flipped:NO drawingHandler:^BOOL(NSRect /*dstRect*/) {
NSRect cFillRects[numCells];
NSRect cFillRects[kMaxCells];
for (int i = 0; i < numCells; ++i)
{
cFillRects[i] = cellBounds[i].rectValue;
}
NSColor* cFillColors[numCells];
NSColor* cFillColors[kMaxCells];
for (int i = 0; i < numCells; ++i)
{
cFillColors[i] = cellColors[i];