Skip to content

Commit 26f2186

Browse files
authored
Merge pull request #3 from mourisl/dev
Fix several function return issues.
2 parents 1f5209c + 5b58040 commit 26f2186

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

Analyzer.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,7 @@ void *ReadAssignmentToFragmentAssignment_Thread(void *pArg)
181181
reads1[i].fragmentAssigned = true ;
182182
fragmentAssignments[i] = fragmentAssignment ;
183183
}
184+
pthread_exit( NULL ) ;
184185
}
185186

186187
void *AddFragmentAlignmentInfo_Thread(void *pArg)
@@ -209,6 +210,7 @@ void *AddFragmentAlignmentInfo_Thread(void *pArg)
209210
else
210211
refSet.AddFragmentAlignmentInfo(reads1[i].seq, NULL, fragmentAssignments[i]) ;
211212
}
213+
pthread_exit( NULL ) ;
212214
}
213215

214216
int main(int argc, char *argv[])

BarcodeCorrector.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ class BarcodeCorrector
151151
fclose(fp) ;
152152
}
153153

154-
int CollectBackgroundDistribution(ReadFiles &barcodeFile, int start, int end, bool revcomp, int caseCnt = 2000000)
154+
void CollectBackgroundDistribution(ReadFiles &barcodeFile, int start, int end, bool revcomp, int caseCnt = 2000000)
155155
{
156156
int readCnt = 0 ;
157157
char buffer[256] ;

SeqSet.hpp

+4-3
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ struct _overlap
135135
return similarity >= b.similarity ;
136136
}
137137

138-
double UpdateSimilarity( int rlen, int slen, int mcnt )
138+
void UpdateSimilarity( int rlen, int slen, int mcnt )
139139
{
140140
double origLen = matchCnt / similarity ;
141141
similarity = ( matchCnt + mcnt ) / ( origLen + rlen + slen ) ;
@@ -988,7 +988,7 @@ class SeqSet
988988
seqs[seqIdx].weight += update;
989989
}
990990

991-
int SetSeqWeight(int seqIdx, int weight)
991+
void SetSeqWeight(int seqIdx, int weight)
992992
{
993993
seqs[seqIdx].weight = weight ;
994994
}
@@ -2819,6 +2819,7 @@ class SeqSet
28192819
psum += seq.exons[i].b - seq.exons[i].a + 1 ;
28202820
}
28212821
}
2822+
return psum ;
28222823
}
28232824

28242825
int InferKmerLength()
@@ -2838,7 +2839,7 @@ class SeqSet
28382839
return ret ;
28392840
}
28402841

2841-
int UpdateKmerLength(int kl)
2842+
void UpdateKmerLength(int kl)
28422843
{
28432844
int i ;
28442845
int seqCnt = seqs.size() ;

0 commit comments

Comments
 (0)