Skip to content

Commit cdd43c6

Browse files
committed
Fix QuartzCore test to pass the necessary number of components to CGColor(colorSpace:components:).
1 parent bc641c1 commit cdd43c6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/stdlib/QuartzCore.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ let deviceRGB = CGColorSpaceCreateDeviceRGB()
2222

2323
class FooLayer: CALayer {
2424
var black: CGColor
25-
var white = CGColor(colorSpace: deviceRGB, components: [1,1,1])!
25+
var white = CGColor(colorSpace: deviceRGB, components: [1,1,1,1])!
2626

2727
override init() {
28-
black = CGColor(colorSpace: deviceRGB, components: [0,0,0])!
28+
black = CGColor(colorSpace: deviceRGB, components: [0,0,0,1])!
2929
super.init()
3030
hangCanary(self)
3131
}

0 commit comments

Comments
 (0)