Skip to content

Commit 811ba54

Browse files
wei18zhgchgli0718
authored andcommitted
Fix typo
1 parent df6667f commit 811ba54

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Sources/ZMarkupParser/Core/MarkupStyle/MarkupStyleColor.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,9 +124,9 @@ extension MarkupStyleColor {
124124

125125
public init(color: NSColor) {
126126
let ciColor = CIColor(color: color)
127-
self.red = Int(ciColor?.red ?? 0) * 255)
128-
self.green = Int(ciColor?.green ?? 0) * 255)
129-
self.blue = Int(ciColor?.blue ?? 0) * 255)
127+
self.red = Int((ciColor?.red ?? 0) * 255)
128+
self.green = Int((ciColor?.green ?? 0) * 255)
129+
self.blue = Int((ciColor?.blue ?? 0) * 255)
130130
self.alpha = ciColor?.alpha ?? 1
131131
}
132132
}

0 commit comments

Comments
 (0)