Skip to content

Commit

Permalink
Not found returns (0 0) for size and posn, use else ifs for switch
Browse files Browse the repository at this point in the history
The many if statements formed a quasi switch statement, and as
there was no default, it worked fine. I know need a default
and it's easier to avoid mistakes if we use else if statements.

Don't crash on invalid IDs for size and pos, return [0, 0] as
sentinel values.
  • Loading branch information
cursork committed Jan 12, 2025
1 parent 9492bf9 commit 9aec93d
Show file tree
Hide file tree
Showing 4 changed files with 348 additions and 364 deletions.
Loading

0 comments on commit 9aec93d

Please sign in to comment.