Skip to content

Commit a2ee142

Browse files
committed
Wrap
1 parent 9095cf9 commit a2ee142

File tree

1 file changed

+1
-1
lines changed
  • compiler/rustc_target/src/abi

1 file changed

+1
-1
lines changed

compiler/rustc_target/src/abi/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -792,7 +792,7 @@ impl WrappingRange {
792792
pub fn is_full_for(&self, size: Size) -> bool {
793793
let max_value = size.unsigned_int_max();
794794
debug_assert!(self.start <= max_value && self.end <= max_value);
795-
(self.start == 0 && self.end == max_value) || (self.end + 1 == self.start)
795+
(self.start == 0 && self.end == max_value) || (self.end.wrapping_add(1) == self.start)
796796
}
797797
}
798798

0 commit comments

Comments
 (0)