Skip to content

Commit b413dcf

Browse files
authored
Merge pull request #4976 from jckarter/quartzcore-asan-3.0
[3.0] Fix QuartzCore test to pass the necessary number of components to `CGColor(colorSpace:components:)`.
2 parents 9671dff + cdd43c6 commit b413dcf

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)