From 2152a11410d9b4018f649cec6c205d5a64f6a77b Mon Sep 17 00:00:00 2001 From: Matt Seaman Date: Wed, 17 Feb 2021 22:14:54 -0500 Subject: [PATCH] [Size] Fix inverted bitwise operations --- Sources/LLVM/Units.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 {