From f21c7d27664bc43d3e5a9401756860c03055c3aa Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Thu, 20 Apr 2023 13:56:44 +0100 Subject: Consistently use snew_dsf to allocate dsfs. All remaining cases where a dsf was allocated via snewn(foo, int) are removed by this change. --- singles.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'singles.c') 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) { -- cgit v1.1