From 7a8dfea2e7d0ef0ae8710f86269f90e60aba71cd Mon Sep 17 00:00:00 2001 From: simon Date: Tue, 5 Jan 2010 18:51:42 +0000 Subject: [PATCH] Yikes! Fix a misaimed 'sizeof' which I only got away with because ints and pointers are usually the same size. git-svn-id: svn://svn.tartarus.org/sgt/puzzles@8809 cda61777-01e9-0310-a592-d414129be87e --- unfinished/group.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unfinished/group.c b/unfinished/group.c index 5dcf586..3d6e839 100644 --- a/unfinished/group.c +++ b/unfinished/group.c @@ -660,7 +660,7 @@ done for (i = 1; i < w; i++) for (j = 1; j < w; j++) indices[k++] = i*w+j; - shuffle(indices, k, sizeof(indices), rs); + shuffle(indices, k, sizeof(*indices), rs); for (i = 0; i < k; i++) { memcpy(soln2, grid, a); -- 2.11.0