Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix compiler error on older compilers #43

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions src/methCall.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -663,8 +663,8 @@ int process_sam ( std::istream *fh, std::string &CpGfile, std::string &CHHfile,
{
if ( ( ( (int) quals[i] - offset ) < minqual ) || ( mcalls[i] == '.') ){ continue;}
std::string key; // initialize the hash key
if( strand == '+') { key = "F|"+ chr+"|"+std::to_string(start+i); }
else { key = "R|"+ chr+"|"+std::to_string(start+i); }
if( strand == '+') { key = "F|"+ chr+"|"+std::to_string(static_cast<long long>(start+i)); }
else { key = "R|"+ chr+"|"+std::to_string(static_cast<long long>(start+i)); }

process_call_string(mcalls,i,key, CGmethHash, nonCGmethHash, CHHmethHash, CHGmethHash);

Expand Down Expand Up @@ -921,8 +921,8 @@ int process_bam ( std::string &input, std::string &CpGfile, std::string &CHHfile
{
if ( ( ( (int) quals[i] - offset ) < minqual ) || ( mcalls[i] == '.') ){ continue;}
std::string key; // initialize the hash key
if( strand == '+') { key = "F|"+ chr+"|"+std::to_string(start+i); }
else { key = "R|"+ chr+"|"+std::to_string(start+i); }
if( strand == '+') { key = "F|"+ chr+"|"+std::to_string(static_cast<long long>(start+i)); }
else { key = "R|"+ chr+"|"+std::to_string(static_cast<long long>(start+i)); }

process_call_string(mcalls,i,key, CGmethHash, nonCGmethHash, CHHmethHash, CHGmethHash);

Expand Down Expand Up @@ -1100,8 +1100,8 @@ int process_single_bismark (std::istream *fh, std::string &CpGfile, std::string
//if last base is a C and it is a part of CCGG motif, don't call for meth
if( ( (gbases[i] == 'C') && (i==quals.length()) ) && ( gbases.substr(i-1,4) == "CCGG" ) ) { continue;}
std::string key; // initilaize the hash key
if( strand == '+') { key = "F|"+ chr+"|"+std::to_string(start+i); }
else { key = "R|"+ chr+"|"+std::to_string(start+i); }
if( strand == '+') { key = "F|"+ chr+"|"+std::to_string(static_cast<long long>(start+i)); }
else { key = "R|"+ chr+"|"+std::to_string(static_cast<long long>(start+i)); }

process_call_string(mcalls, i,key, CGmethHash, nonCGmethHash, CHHmethHash, CHGmethHash);

Expand Down