diff --git a/Sources/LLVM/Units.swift b/Sources/LLVM/Units.swift index b5456237..26c8cafb 100644 --- a/Sources/LLVM/Units.swift +++ b/Sources/LLVM/Units.swift @@ -261,7 +261,7 @@ extension Size: UnsignedInteger { } public static func |= (lhs: inout Size, rhs: Size) { - lhs = Size(lhs.rawValue & rhs.rawValue) + lhs = Size(lhs.rawValue | rhs.rawValue) } public static func ^= (lhs: inout Size, rhs: Size) { @@ -273,7 +273,7 @@ extension Size: UnsignedInteger { } public static func <<= (lhs: inout Size, rhs: RHS) { - lhs = Size(lhs.rawValue >> rhs) + lhs = Size(lhs.rawValue << rhs) } public static prefix func ~ (x: Size) -> Size {