File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -1037,7 +1037,6 @@ pub(super) unsafe fn COVER_selectDict(
10371037) -> COVER_dictSelection_t {
10381038 let mut largestDict = 0 ;
10391039 let mut largestCompressed = 0 ;
1040- let customDictContentEnd = customDictContent. as_ptr ( ) . add ( dictContentSize) ;
10411040 let mut largestDictbuffer: Box < [ u8 ] > = Box :: from ( vec ! [ 0u8 ; dictBufferCapacity] ) ;
10421041 let mut candidateDictBuffer: Box < [ u8 ] > = Box :: from ( vec ! [ 0u8 ; dictBufferCapacity] ) ;
10431042 let regressionTolerance =
@@ -1085,7 +1084,9 @@ pub(super) unsafe fn COVER_selectDict(
10851084 dictContentSize = ZDICT_finalizeDictionary (
10861085 candidateDictBuffer. as_mut_ptr ( ) as * mut core:: ffi:: c_void ,
10871086 dictBufferCapacity,
1088- customDictContentEnd. offset ( -( dictContentSize as isize ) ) as * const core:: ffi:: c_void ,
1087+ customDictContent[ customDictContent. len ( ) - dictContentSize..]
1088+ . as_ptr ( )
1089+ . cast ( ) ,
10891090 dictContentSize,
10901091 samplesBuffer as * const core:: ffi:: c_void ,
10911092 samplesSizes,
You can’t perform that action at this time.
0 commit comments