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 @@ -49,11 +49,12 @@ - (NSString *) twoPassesCandidateForCandidate: (NSString *) candidate {
4949- (double ) scoreTwoPassesCandidate : (NSString *) finalCandidate matchedRanges : (NSArray **) ranges secondPassRanges : (NSArray **)secondPass {
5050 NSUInteger originalLength = finalCandidate.length / 2 ;
5151
52- double final = [super scoreCandidate: finalCandidate matchedRanges: ranges];
52+ NSArray * localRanges = nil ;
53+ double final = [super scoreCandidate: finalCandidate matchedRanges: &localRanges];
5354
5455 NSMutableArray * secondPassRanges = secondPass ? [NSMutableArray array ] : nil ;
5556 NSMutableArray * newRanges = ranges ? [NSMutableArray array ] : nil ;
56- for (NSValue * v in *ranges ) {
57+ for (NSValue * v in localRanges ) {
5758 NSRange r = [v rangeValue ];
5859 if (r.location > originalLength) {
5960 r.location -= originalLength + 1 ;
You can’t perform that action at this time.
0 commit comments