Skip to content

Commit 2df2c7c

Browse files
TDeckinggitbot
authored and
gitbot
committed
Update the definition of borrowing_sub
This ensures that it matches the one in `carrying_add`.
1 parent 5d054f8 commit 2df2c7c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/num/uint_macros.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2445,7 +2445,7 @@ macro_rules! uint_impl {
24452445
// to generate optimal code for now, and LLVM doesn't have an equivalent intrinsic
24462446
let (a, b) = self.overflowing_sub(rhs);
24472447
let (c, d) = a.overflowing_sub(borrow as $SelfT);
2448-
(c, b || d)
2448+
(c, b | d)
24492449
}
24502450

24512451
/// Calculates `self` - `rhs` with a signed `rhs`

0 commit comments

Comments
 (0)