From be8f616d7cfd406880608e470a6c7fda45b04c50 Mon Sep 17 00:00:00 2001 From: Martin Steinegger Date: Mon, 28 May 2018 14:31:14 +0900 Subject: [PATCH] Change i32toa_sse2 to u32toa_sse2 for keys --- src/clustering/Clustering.cpp | 2 +- src/util/createdb.cpp | 2 +- src/util/profile2pssm.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/clustering/Clustering.cpp b/src/clustering/Clustering.cpp index bb5117482..05666191e 100644 --- a/src/clustering/Clustering.cpp +++ b/src/clustering/Clustering.cpp @@ -99,7 +99,7 @@ void Clustering::writeData(DBWriter *dbw, const std::unordered_mapgetDbKey(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'); } diff --git a/src/util/createdb.cpp b/src/util/createdb.cpp index 263492125..c79943dd9 100644 --- a/src/util/createdb.cpp +++ b/src/util/createdb.cpp @@ -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); diff --git a/src/util/profile2pssm.cpp b/src/util/profile2pssm.cpp index 0a190a05f..9925f980f 100644 --- a/src/util/profile2pssm.cpp +++ b/src/util/profile2pssm.cpp @@ -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'); }