-
Notifications
You must be signed in to change notification settings - Fork 288
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
Various minor fixes #238
Various minor fixes #238
Conversation
The mapping quality variables was made signed to handle correctly erroneous input.
@@ -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,"%05lu",(file_index+1)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
%05zu
; but probably it would be best to just avoid the issue by building the filename via an ostringstream
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, I fixed it in f9001c5.
PR #233 has a better fix for the overflow warning that makes |
Thanks all. We will try to merge in all of these patches soon. |
The `abs` function calls were replaced with `labs` for long int variables.
In addition to 50d8c16.
If modification time of a FASTA index file is less than modification time of its FASTA file, then the warning message is shown; resolves #228.
To make the test more robust, the original FASTA file is replaced with another one with the same sequences but different headers. I used the example by @dshivak.
The fixes were motivated by the clang C++ compiler warnings.