File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -365,12 +365,12 @@ where
365
365
if count > 0 {
366
366
macro_rules! left {
367
367
( ) => {
368
- l. add( * start_l as usize )
368
+ l. add( usize :: from ( * start_l) )
369
369
} ;
370
370
}
371
371
macro_rules! right {
372
372
( ) => {
373
- r. sub( ( * start_r as usize ) + 1 )
373
+ r. sub( usize :: from ( * start_r) + 1 )
374
374
} ;
375
375
}
376
376
@@ -458,7 +458,7 @@ where
458
458
// the last block, so the `l.offset` calls are valid.
459
459
unsafe {
460
460
end_l = end_l. sub ( 1 ) ;
461
- ptr:: swap ( l. add ( * end_l as usize ) , r. sub ( 1 ) ) ;
461
+ ptr:: swap ( l. add ( usize :: from ( * end_l) ) , r. sub ( 1 ) ) ;
462
462
r = r. sub ( 1 ) ;
463
463
}
464
464
}
@@ -471,7 +471,7 @@ where
471
471
// SAFETY: See the reasoning in [remaining-elements-safety].
472
472
unsafe {
473
473
end_r = end_r. sub ( 1 ) ;
474
- ptr:: swap ( l, r. sub ( ( * end_r as usize ) + 1 ) ) ;
474
+ ptr:: swap ( l, r. sub ( usize :: from ( * end_r) + 1 ) ) ;
475
475
l = l. add ( 1 ) ;
476
476
}
477
477
}
You can’t perform that action at this time.
0 commit comments