Fix copy-pasted operator impls from #3856 (#3862)

Co-authored-by: Josh L <josh11b@users.noreply.github.com>
This commit is contained in:
josh11b
2024-04-04 21:15:24 +00:00
committed by GitHub
co-authored by Josh L
parent 2b2f27a9ce
commit 4bd6f8d4be
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -25,7 +25,7 @@ impl i32 as BitAnd {
}
impl i32 as BitAndAssign {
fn Op[addr self: Self*](other: Self) {
*self = *self + other;
*self = *self & other;
}
}
@@ -38,7 +38,7 @@ impl i32 as BitOr {
}
impl i32 as BitOrAssign {
fn Op[addr self: Self*](other: Self) {
*self = *self + other;
*self = *self | other;
}
}
+2 -2
View File
@@ -29,7 +29,7 @@ impl i32 as Core.BitAnd {
}
impl i32 as Core.BitAndAssign {
fn Op[addr self: Self*](other: Self) {
*self = *self + other;
*self = *self & other;
}
}
@@ -42,7 +42,7 @@ impl i32 as Core.BitOr {
}
impl i32 as Core.BitOrAssign {
fn Op[addr self: Self*](other: Self) {
*self = *self + other;
*self = *self | other;
}
}