From 91ba3a5cc7703ae3ba37be3ad43692556177a0a7 Mon Sep 17 00:00:00 2001 From: KunoiSayami Date: Sun, 28 May 2023 16:06:33 +0800 Subject: fix(exp): Fix sample not sort Signed-off-by: KunoiSayami --- read_helper.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'read_helper.h') 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 class ReadHelper { typedef unsigned long long key_type; - key_type max_value = 0, min_value = 0x7fffffffff; + + key_type max_value = std::numeric_limits::min(), + min_value = std::numeric_limits::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 population_vector; inline void store_into_vector(key_type value) { -- cgit v1.3.1