diff --git a/Source/Private/_ASCoreAnimationExtras.mm b/Source/Private/_ASCoreAnimationExtras.mm index b55bd6442..a26266b29 100644 --- a/Source/Private/_ASCoreAnimationExtras.mm +++ b/Source/Private/_ASCoreAnimationExtras.mm @@ -80,7 +80,7 @@ void ASDisplayNodeSetResizableContents(id obj, UIImage *ima {UIViewContentModeBottomLeft, kCAGravityTopLeft}, {UIViewContentModeBottomRight, kCAGravityTopRight}, }; - *count = sizeof(sUIContentModeCAGravityLUT) / sizeof(sUIContentModeCAGravityLUT[0]); + *count = AS_ARRAY_SIZE(sUIContentModeCAGravityLUT); return sUIContentModeCAGravityLUT; } @@ -103,7 +103,7 @@ void ASDisplayNodeSetResizableContents(id obj, UIImage *ima {UIViewContentModeBottomLeft, @"bottomLeft"}, {UIViewContentModeBottomRight, @"bottomRight"}, }; - *count = sizeof(sUIContentModeDescriptionLUT) / sizeof(sUIContentModeDescriptionLUT[0]); + *count = AS_ARRAY_SIZE(sUIContentModeDescriptionLUT); return sUIContentModeDescriptionLUT; }