Skip to content

Commit bc95994

Browse files
committed
bugfix
1 parent a2ee142 commit bc95994

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

Diff for: 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.wrapping_add(1) == self.start)
795+
self.start == (self.end.wrapping_add(1) & max_value)
796796
}
797797
}
798798

0 commit comments

Comments
 (0)