From 0a22cff25359e149f6a3677825576615e6a17cfe Mon Sep 17 00:00:00 2001 From: Zengtudor Date: Thu, 19 Sep 2024 09:58:12 +0800 Subject: [PATCH] update --- src/main.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 90556e7..2bbf027 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -71,7 +71,7 @@ int main() std::array buf; - unsigned long long lines = 0; + unsigned int lines = 0; std::filesystem::path input_path("filteredReads.txt"),output_path("reversedSequence.txt"); @@ -80,7 +80,7 @@ int main() while (input_file_stream.getline(buf.data(),MAX_SIZE,'\n')) { - int m = lines%2; + int m = lines%=2; //防止溢出 const auto buf_len = strlen(buf.data()); const std::string_view suffix("\n"); //设置一个每个DNA序列结尾的字符,这里是以\n换行来结尾 if (m == 1){ @@ -104,7 +104,7 @@ int main() ); }catch(...){ zt::print( - "Caught an unknown error because:\n", + "Caught an unknown error :\n", "Closing\n" ); }