@@ -58,20 +58,20 @@ template <typename index_at> struct aligned_wrapper_gt {
58
58
};
59
59
60
60
/* *
61
- * Tests the functionality of the custom uint40_t type ensuring consistent
61
+ * Tests the functionality of the custom uint40_t type ensuring consistent
62
62
* behavior across various constructors from uint32_t, uint64_t, and size_t types.
63
63
*/
64
64
void test_uint40 () {
65
65
// Constants for tests
66
66
std::uint64_t max_uint40_k = (1ULL << 40 ) - 1 ;
67
67
68
68
for (std::uint64_t original_value : {
69
- 42ull , // Typical small number
70
- 4242ull , // Larger number still within uint40 range
71
- 1ull << 40 , // Exactly at the boundary of uint40
72
- (1ull << 40 ) + 1 , // Just beyond the boundary of uint40
73
- 1ull << 63 // Well beyond the uint40 boundary, tests masking
74
- }) {
69
+ 42ull , // Typical small number
70
+ 4242ull , // Larger number still within uint40 range
71
+ 1ull << 40 , // Exactly at the boundary of uint40
72
+ (1ull << 40 ) + 1 , // Just beyond the boundary of uint40
73
+ 1ull << 63 // Well beyond the uint40 boundary, tests masking
74
+ }) {
75
75
std::uint32_t v_32 = static_cast <std::uint32_t >(original_value);
76
76
std::uint64_t v_64 = original_value;
77
77
std::size_t v_size = static_cast <std::size_t >(original_value);
@@ -742,10 +742,10 @@ template <typename key_at, typename slot_at> void test_strings() {
742
742
return between (some_vector, str_at (get_slot (member)));
743
743
}
744
744
levenshtein_distance_t operator ()(member_citerator_t const & a, member_citerator_t const & b) const {
745
- return between (str_at (get_slot (b)), str_at (get_slot (a)));
745
+ return between (str_at (get_slot (* b)), str_at (get_slot (* a)));
746
746
}
747
747
levenshtein_distance_t operator ()(std::string_view some_vector, member_citerator_t const & member) const {
748
- return between (some_vector, str_at (get_slot (member)));
748
+ return between (some_vector, str_at (get_slot (* member)));
749
749
}
750
750
};
751
751
0 commit comments