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:
parent
d5a99c2f5e
commit
299509ce32
@ -28,7 +28,7 @@ static bool test_fails = false;
|
|||||||
|
|
||||||
static
|
static
|
||||||
void
|
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 {";
|
cerr << "Find " << target << " in {";
|
||||||
for (auto i : vec) {
|
for (auto i : vec) {
|
||||||
@ -42,7 +42,7 @@ seeker_test(const vector<uint64_t> &vec, size_t target)
|
|||||||
return seeker_finder(vec, lower, upper);
|
return seeker_finder(vec, lower, upper);
|
||||||
});
|
});
|
||||||
cerr << found;
|
cerr << found;
|
||||||
size_t my_found = 0;
|
uint64_t my_found = 0;
|
||||||
for (auto i : vec) {
|
for (auto i : vec) {
|
||||||
if (i <= target) {
|
if (i <= target) {
|
||||||
my_found = i;
|
my_found = i;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user