diff options
| author | Simon Tatham <anakin@pobox.com> | 2023-07-14 08:09:51 +0100 |
|---|---|---|
| committer | Simon Tatham <anakin@pobox.com> | 2023-07-14 08:09:51 +0100 |
| commit | 40d0de7a668ea4c95cdf06af4a1554ff0be6936d (patch) | |
| tree | a5fc69c4b1c73efd96ab63373bc9fecf910fe09f /html/map.html | |
| parent | a95796ebca53a7b7e0412860f3a38ec518d838be (diff) | |
| download | puzzles-40d0de7a668ea4c95cdf06af4a1554ff0be6936d.zip puzzles-40d0de7a668ea4c95cdf06af4a1554ff0be6936d.tar.gz puzzles-40d0de7a668ea4c95cdf06af4a1554ff0be6936d.tar.bz2 puzzles-40d0de7a668ea4c95cdf06af4a1554ff0be6936d.tar.xz | |
grid_edge_bydots_cmpfn: remove dangerous pointer comparison.
Commit e6cdd70df867f06 made the grid_dot structures for a grid no
longer be elements of the same array. But I didn't notice that
grid_edge_bydots_cmpfn was doing pointer subtraction on them on the
assumption that they were.
Fixed by comparing the dots' new index fields, which should correspond
exactly to their previous positions in the single array, so the
behaviour should be just what it was before the change.
Diffstat (limited to 'html/map.html')
0 files changed, 0 insertions, 0 deletions