Skip to content

Conversation

@joto
Copy link
Collaborator

@joto joto commented Nov 2, 2022

No description provided.

joto added 2 commits November 2, 2022 10:05
The code in expire_from_result() will also do nothing if called with
empty results.
auto const tmp_min = coords_to_tile({box.min_x(), box.max_y()});
int min_tile_x = tmp_min.x() - tile_expiry_leeway;
int min_tile_y = tmp_min.y() - tile_expiry_leeway;
auto const tmp_min = coords_to_tile(box.min());
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This code is not the same. box.min() returns min_y while the old code has max_y. Is this a problem?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes it is! Now that we have tests (from another recently added PR) we can immediately see that they fail!

@joto joto closed this Nov 3, 2022
@joto joto deleted the use-min-max-in-expire branch November 4, 2022 10:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants