We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9095cf9 commit a2ee142Copy full SHA for a2ee142
compiler/rustc_target/src/abi/mod.rs
@@ -792,7 +792,7 @@ impl WrappingRange {
792
pub fn is_full_for(&self, size: Size) -> bool {
793
let max_value = size.unsigned_int_max();
794
debug_assert!(self.start <= max_value && self.end <= max_value);
795
- (self.start == 0 && self.end == max_value) || (self.end + 1 == self.start)
+ (self.start == 0 && self.end == max_value) || (self.end.wrapping_add(1) == self.start)
796
}
797
798
0 commit comments