aboutsummaryrefslogtreecommitdiff
path: root/singles.c
diff options
context:
space:
mode:
authorSimon Tatham <anakin@pobox.com>2023-04-20 13:56:44 +0100
committerSimon Tatham <anakin@pobox.com>2023-04-20 17:22:23 +0100
commitf21c7d27664bc43d3e5a9401756860c03055c3aa (patch)
tree132993b10b21f8be6e559174c50a3ac12b5901fe /singles.c
parent11a8149d673d96bec17d6487b5fa95b5bf5ffd6b (diff)
downloadpuzzles-f21c7d27664bc43d3e5a9401756860c03055c3aa.zip
puzzles-f21c7d27664bc43d3e5a9401756860c03055c3aa.tar.gz
puzzles-f21c7d27664bc43d3e5a9401756860c03055c3aa.tar.bz2
puzzles-f21c7d27664bc43d3e5a9401756860c03055c3aa.tar.xz
Consistently use snew_dsf to allocate dsfs.
All remaining cases where a dsf was allocated via snewn(foo, int) are removed by this change.
Diffstat (limited to 'singles.c')
-rw-r--r--singles.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/singles.c b/singles.c
index cc079fe..5541ad5 100644
--- a/singles.c
+++ b/singles.c
@@ -498,7 +498,7 @@ static int check_rowcol(game_state *state, int starti, int di, int sz, unsigned
static bool check_complete(game_state *state, unsigned flags)
{
- int *dsf = snewn(state->n, int);
+ int *dsf = snew_dsf(state->n);
int x, y, i, error = 0, nwhite, w = state->w, h = state->h;
if (flags & CC_MARK_ERRORS) {