File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -214,7 +214,7 @@ impl Address {
214214
215215 /// Apply an signed offset to the address.
216216 pub const fn offset ( self , offset : isize ) -> Address {
217- Address ( ( self . 0 as isize ) . wrapping_add ( offset) as usize )
217+ Address ( self . 0 . wrapping_add_signed ( offset) )
218218 }
219219
220220 /// Bitwise 'and' with a mask.
Original file line number Diff line number Diff line change @@ -433,7 +433,7 @@ pub trait ObjectModel<VM: VMBinding> {
433433 const VM_WORST_CASE_COPY_EXPANSION : f64 = 1.5 ;
434434
435435 /// If this is true, the binding guarantees that the object reference's raw address,
436- /// the in-object address, and the object start is always the same address. To be precise,
436+ /// the in-object address, and the object start are always the same address. To be precise,
437437 /// 1. an object reference's raw address is always equal to the return value of the `ref_to_object_start` method,
438438 /// 2. `IN_OBJECT_ADDRESS_OFFSET` is 0.
439439 ///
You can’t perform that action at this time.
0 commit comments