File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -349,9 +349,9 @@ unsafe fn ZDICT_analyzePos(
349349 let mut savings = [ 0u32 ; LLIMIT ] ;
350350 savings[ 5 ] = 0 ;
351351
352- for u_1 in MINMATCHLENGTH as usize ..=maxLength {
353- savings[ u_1 as usize ] = ( savings[ u_1. wrapping_sub ( 1 ) as usize ] )
354- . wrapping_add ( ( lengthList[ u_1 as usize ] ) . wrapping_mul ( u_1. wrapping_sub ( 3 ) as u32 ) ) ;
352+ for u_1 in MINMATCHLENGTH ..=maxLength {
353+ savings[ u_1] = ( savings[ u_1. wrapping_sub ( 1 ) ] )
354+ . wrapping_add ( ( lengthList[ u_1] ) . wrapping_mul ( u_1. wrapping_sub ( 3 ) as u32 ) ) ;
355355 }
356356
357357 if notificationLevel >= 4 {
Original file line number Diff line number Diff line change @@ -354,7 +354,7 @@ unsafe extern "C" fn INThandler(sig: core::ffi::c_int) {
354354unsafe fn addHandler ( dstFileName : * const core:: ffi:: c_char ) {
355355 if UTIL_isRegularFile ( dstFileName) != 0 {
356356 g_artefact = dstFileName;
357- signal ( SIGINT , INThandler as sighandler_t ) ;
357+ signal ( SIGINT , INThandler as * const ( ) as sighandler_t ) ;
358358 } else {
359359 g_artefact = core:: ptr:: null ( ) ;
360360 } ;
You can’t perform that action at this time.
0 commit comments