X-Git-Url: https://git.donarmstrong.com/?p=rsem.git;a=blobdiff_plain;f=ReadReader.h;h=9cd88e95a93bfc4570d81d0af76045efb097efb6;hp=d244efa4236807871dcdda49c4b1f942d224f3ef;hb=9eef8b58056b7cdaad1b4bdb2b2904d9fc0ff430;hpb=f67ec16ff8add74c17df026f77cf39e5a1aca051 diff --git a/ReadReader.h b/ReadReader.h index d244efa..9cd88e9 100644 --- a/ReadReader.h +++ b/ReadReader.h @@ -27,7 +27,7 @@ public: this->indices = indices; } - bool locate(long); // You should guarantee that indices exist and rid is valid, otherwise return false; If it fails, you should reset it manually! + bool locate(READ_INT_TYPE); // You should guarantee that indices exist and rid is valid, otherwise return false; If it fails, you should reset it manually! void reset(); bool next(ReadType& read, int flags = 7) { @@ -78,15 +78,15 @@ ReadReader::~ReadReader() { } template -bool ReadReader::locate(long rid) { - long crid = -1; +bool ReadReader::locate(READ_INT_TYPE rid) { + READ_INT_TYPE crid = -1; ReadType read; if (indices == NULL) return false; //We should make sure that crid returned by each indices is the same for (int i = 0; i < s; i++) { - long val = indices[i]->locate(rid, *arr[i]); + READ_INT_TYPE val = indices[i]->locate(rid, *arr[i]); if (i == 0) { crid = val; } else { assert(crid == val); } } assert(crid <= rid);