Skip to content

Commit 11dec7e

Browse files
authored
fix(0.74, Xcode 26): Add explicit cast for enum type to suppress a wa… (microsoft#2514)
1 parent 475ab23 commit 11dec7e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/react-native/React/Base/macOS/RCTUIKit.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ void UIGraphicsBeginImageContextWithOptions(CGSize size, __unused BOOL opaque, C
4444
size_t height = ceilf(size.height * scale);
4545

4646
CGColorSpaceRef colorSpace = CGColorSpaceCreateDeviceRGB();
47-
CGContextRef ctx = CGBitmapContextCreate(NULL, width, height, 8/*bitsPerComponent*/, width * 4/*bytesPerRow*/, colorSpace, kCGImageAlphaPremultipliedFirst);
47+
CGContextRef ctx = CGBitmapContextCreate(NULL, width, height, 8/*bitsPerComponent*/, width * 4/*bytesPerRow*/, colorSpace, (CGBitmapInfo)kCGImageAlphaPremultipliedFirst);
4848
CGColorSpaceRelease(colorSpace);
4949

5050
if (ctx != NULL)

0 commit comments

Comments
 (0)