diff options
| author | KunoiSayami <[email protected]> | 2023-05-28 16:06:33 +0800 |
|---|---|---|
| committer | KunoiSayami <[email protected]> | 2023-05-28 16:06:33 +0800 |
| commit | 91ba3a5cc7703ae3ba37be3ad43692556177a0a7 (patch) | |
| tree | 85cf1836ef7477b1b486cac89dd2cbe0809be976 /read_helper.h | |
| parent | 8d98c61aa03969d064e0081a40a5c22c8e29eadf (diff) | |
fix(exp): Fix sample not sort
Signed-off-by: KunoiSayami <[email protected]>
Diffstat (limited to 'read_helper.h')
| -rw-r--r-- | read_helper.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/read_helper.h b/read_helper.h index 54ca77a..f12f4d9 100644 --- a/read_helper.h +++ b/read_helper.h @@ -14,9 +14,12 @@ #endif #endif +// template <typename key_type> class ReadHelper { typedef unsigned long long key_type; - key_type max_value = 0, min_value = 0x7fffffffff; + + key_type max_value = std::numeric_limits<key_type>::min(), + min_value = std::numeric_limits<key_type>::max(); char const *filename; static constexpr size_t REVERSED_BLOCK = 256; @@ -29,8 +32,8 @@ public: needed_read_length(insertion_length + sample_length) { // printf("%zu %zu\n", sample_length, needed_read_length); } - unsigned long long maxValue() const { return max_value; } - unsigned long long minValue() const { return min_value; } + key_type maxValue() const { return max_value; } + key_type minValue() const { return min_value; } std::vector<key_type> population_vector; inline void store_into_vector(key_type value) { |
