Commit 6d9b9a2
fix(2a): derive grid row count from Height, not Width (final review)
GridReference computed the row count from Width and never read Height/
OceanMargin — correct only because Rust maps are square. Derive each axis
from its own dimension so the grid math is correct by construction.
Behavior-preserving for square maps; GridReference tests unchanged.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent dc347ba commit 6d9b9a2
1 file changed
Lines changed: 6 additions & 5 deletions
Lines changed: 6 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
27 | | - | |
28 | | - | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
29 | 30 | | |
30 | | - | |
31 | | - | |
| 31 | + | |
| 32 | + | |
32 | 33 | | |
33 | 34 | | |
34 | 35 | | |
| |||
0 commit comments