diff options
| author | Simon Tatham <anakin@pobox.com> | 2023-04-20 14:00:23 +0100 |
|---|---|---|
| committer | Simon Tatham <anakin@pobox.com> | 2023-04-20 17:22:25 +0100 |
| commit | 7abf85a9c6b460698994d9cfa538b7b26fed5e87 (patch) | |
| tree | 843c9ff4cce082b681a625db724eff192b6a5b6d /filling.c | |
| parent | f21c7d27664bc43d3e5a9401756860c03055c3aa (diff) | |
| download | puzzles-7abf85a9c6b460698994d9cfa538b7b26fed5e87.zip puzzles-7abf85a9c6b460698994d9cfa538b7b26fed5e87.tar.gz puzzles-7abf85a9c6b460698994d9cfa538b7b26fed5e87.tar.bz2 puzzles-7abf85a9c6b460698994d9cfa538b7b26fed5e87.tar.xz | |
Remove a direct use of dsf internals in Filling.
The expression 'dsf[foo] >> 2' already has a sensible wrapper
function, but Filling wasn't bothering to call it.
Diffstat (limited to 'filling.c')
| -rw-r--r-- | filling.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -559,7 +559,7 @@ static int expandsize(const int *board, int *dsf, int w, int h, int i, int n) { root = dsf_canonify(dsf, idx); for (m = 0; m < nhits && root != hits[m]; ++m); if (m < nhits) continue; - printv("\t (%d, %d) contrib %d to size\n", x, y, dsf[root] >> 2); + printv("\t (%d, %d) contrib %d to size\n", x, y, dsf_size(dsf, root)); size += dsf_size(dsf, root); assert(dsf_size(dsf, root) >= 1); hits[nhits++] = root; |