]> git.donarmstrong.com Git - rsem.git/blobdiff - buildReadIndex.cpp
Imported Upstream version 1.2.17
[rsem.git] / buildReadIndex.cpp
index c9e1deb729c1b948a48a7a6c4e10b48806dfb04e..7fde02511d7c1083441aaf802149a9d0330db8d6 100644 (file)
@@ -13,7 +13,7 @@ bool hasQ;
 
 void buildIndex(char* readF, int gap, bool hasQ) {
        int nPos;
-       long nReads;
+       READ_INT_TYPE nReads;
        bool success;
        string line;
        char idxF[STRLEN];
@@ -53,7 +53,7 @@ void buildIndex(char* readF, int gap, bool hasQ) {
                }
                ++nReads;
 
-               if (verbose && nReads % 1000000 == 0) { printf("FIN %lld\n", (long long)nReads); }
+               if (verbose && nReads % 1000000 == 0) { cout<< "FIN "<< nReads<< endl; }
        } while (success);
 
        fout.seekp(startPos);
@@ -64,7 +64,7 @@ void buildIndex(char* readF, int gap, bool hasQ) {
        fin.close();
        fout.close();
 
-       if (verbose) { printf("Build Index %s is Done!\n", readF); }
+       if (verbose) { cout<< "Build Index "<< readF<< " is Done!"<< endl; }
 }
 
 int main(int argc, char* argv[]) {