Skip to content

Commit

Permalink
Change i32toa_sse2 to u32toa_sse2 for keys
Browse files Browse the repository at this point in the history
  • Loading branch information
martin-steinegger committed May 28, 2018
1 parent a58d383 commit be8f616
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/clustering/Clustering.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ void Clustering::writeData(DBWriter *dbw, const std::unordered_map<unsigned int,
// first entry is the representative sequence
for (size_t i = 0; i < elements.size(); i++) {
unsigned int nextDbKey = seqDbr->getDbKey(elements[i]);
char * outpos = Itoa::i32toa_sse2(nextDbKey, buffer);
char * outpos = Itoa::u32toa_sse2(nextDbKey, buffer);
resultStr.append(buffer, (outpos - buffer - 1) );
resultStr.push_back('\n');
}
Expand Down
2 changes: 1 addition & 1 deletion src/util/createdb.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ int createdb(int argn, const char **argv, const Command& command) {
}

unsigned int id = par.identifierOffset + entries_num;
char * tmpBuff = Itoa::i32toa_sse2(id, lookupBuffer);
char * tmpBuff = Itoa::u32toa_sse2(id, lookupBuffer);
*(tmpBuff-1) = '\t';
fwrite(lookupBuffer, sizeof(char), tmpBuff-lookupBuffer, lookupFile);
fwrite(splitId.c_str(), sizeof(char), splitId.length(), lookupFile);
Expand Down
2 changes: 1 addition & 1 deletion src/util/profile2pssm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ int profile2pssm(int argc, const char **argv, const Command &command) {

if (isDbOutput == false) {
result.append("Query profile of sequence ");
Itoa::i32toa_sse2(key, buffer);
Itoa::u32toa_sse2(key, buffer);
result.append(buffer);
result.push_back('\n');
}
Expand Down

0 comments on commit be8f616

Please sign in to comment.