Skip to content

[bug] Make sparse get_at return None for oversized coordinates #123

Open

Description

@GermanHeim

Describe the bug
On a 64-bit target, get_at([usize::MAX]) returns None for a dense indexed family but panics for a sparse family. The sparse path builds an IndexKey using an infallible conversion to i64.

Expected behaviour
We could make coordinate-to-key conversion fallible using i64::try_from, propagate conversion failure as None in the sparse lookup path, and preserve the documented panic for the infallible at and indexing APIs when coordinates are absent.

Additional context
This issue is tagged good first issue specifically to help new contributors get hands-on with the codebase and wants to contribute in the long term. Please do not use AI for this issue.

Activity

  1. added
    bug
    good first issue
    on Oct 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    buggood first issue

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions