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

Minor fixes #250

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion src/bedToBam/bedToBam.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ int bedtobam_main(int argc, char* argv[]) {
string bedFile = "stdin";
string genomeFile;

unsigned int mapQual = 255;
int mapQual = 255;

bool haveBed = true;
bool haveGenome = false;
Expand Down
2 changes: 1 addition & 1 deletion src/bedpeToBam/bedpeToBam.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ int bedpetobam_main(int argc, char* argv[]) {
string bedpeFile = "stdin";
string genomeFile;

unsigned int mapQual = 255;
int mapQual = 255;

bool haveBedPE = true;
bool haveGenome = false;
Expand Down
2 changes: 1 addition & 1 deletion src/fisher/kfunc.c
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ double kt_fisher_exact(long long n11, long long n12, long long n21, long long n2
*two = left + right;
if (*two > 1.) *two = 1.;
// adjust left and right
if (abs((long) (i - n11)) < abs((long) (j - n11))) right = 1. - left + q;
if (labs((long) (i - n11)) < labs((long) (j - n11))) right = 1. - left + q;
else left = 1.0 - right + q;
*_left = left; *_right = right;
return q;
Expand Down
2 changes: 1 addition & 1 deletion src/split/splitBed.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ std::FILE* BedSplit::saveFileChunk(std::string& filename,size_t file_index)

char tmp[10];
filename.assign(this->outfileprefix);
sprintf(tmp,"%05d",(file_index+1));
sprintf(tmp,"%05zu",(file_index+1));
filename.append(".").append(tmp).append(".bed");
FILE* out = fopen(filename.c_str(),"w");
if(out==NULL)
Expand Down
2 changes: 1 addition & 1 deletion src/utils/BamTools/src/api/internal/io/HostAddress_p.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ bool HostAddress::operator<(const HostAddress& other) const {
// if self is IPv4
if ( m_protocol == HostAddress::IPv4Protocol ) {
if ( other.m_protocol == HostAddress::IPv4Protocol )
return m_ip4Address < m_ip4Address;
return m_ip4Address < other.m_ip4Address;
}

// if self is IPv6
Expand Down