]> git.hungrycats.org Git - bees/commitdiff
seeker: fix the test for ILP32 platforms
authorZygo Blaxell <bees@furryterror.org>
Sun, 12 Feb 2023 18:00:00 +0000 (13:00 -0500)
committerZygo Blaxell <bees@furryterror.org>
Mon, 20 Feb 2023 16:30:56 +0000 (11:30 -0500)
Not sure what I was thinking, but the argument here should clearly
be uint64_t.

Fixes: https://github.com/Zygo/bees/issues/248
Signed-off-by: Zygo Blaxell <bees@furryterror.org>
test/seeker.cc

index 9e473bf09e04a6ff4a2604d2560f45975c9833b7..b4f8121659500f435e3c8cc51edf9d3a89e97278 100644 (file)
@@ -28,7 +28,7 @@ static bool test_fails = false;
 
 static
 void
-seeker_test(const vector<uint64_t> &vec, size_t target)
+seeker_test(const vector<uint64_t> &vec, uint64_t const target)
 {
        cerr << "Find " << target << " in {";
        for (auto i : vec) {
@@ -42,7 +42,7 @@ seeker_test(const vector<uint64_t> &vec, size_t target)
                        return seeker_finder(vec, lower, upper);
                });
                cerr << found;
-               size_t my_found = 0;
+               uint64_t my_found = 0;
                for (auto i : vec) {
                        if (i <= target) {
                                my_found = i;