aboutsummaryrefslogtreecommitdiff
path: root/rect.c
diff options
context:
space:
mode:
authorSimon Tatham <anakin@pobox.com>2023-07-14 08:09:51 +0100
committerSimon Tatham <anakin@pobox.com>2023-07-14 08:09:51 +0100
commit40d0de7a668ea4c95cdf06af4a1554ff0be6936d (patch)
treea5fc69c4b1c73efd96ab63373bc9fecf910fe09f /rect.c
parenta95796ebca53a7b7e0412860f3a38ec518d838be (diff)
downloadpuzzles-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 'rect.c')
0 files changed, 0 insertions, 0 deletions