1
0
mirror of https://github.com/Zygo/bees.git synced 2025-05-17 21:35:45 +02:00

seeker: fix the test for ILP32 platforms

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>
This commit is contained in:
Zygo Blaxell 2023-02-12 13:00:00 -05:00
parent d5a99c2f5e
commit 299509ce32

View 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;