Consistently use snew_dsf to allocate dsfs.

All remaining cases where a dsf was allocated via snewn(foo, int) are
removed by this change.
This commit is contained in:
Simon Tatham
2023-04-20 13:56:44 +01:00
parent 11a8149d67
commit f21c7d2766
8 changed files with 11 additions and 13 deletions

View File

@ -1771,7 +1771,7 @@ static game_state *new_state(const game_params *params)
ret->solver = snew(struct solver_state);
ret->solver->dsf = snew_dsf(wh);
ret->solver->tmpdsf = snewn(wh, int);
ret->solver->tmpdsf = snew_dsf(wh);
ret->solver->refcount = 1;