shithub: puzzles

Download patch

ref: 66a6a930c52c5094d547ef91a09f19991cc707f5
parent: ed4b163b6990b3815294f96b94c17752e54d9768
author: Simon Tatham <anakin@pobox.com>
date: Tue Jan 5 13:51:42 EST 2010

Yikes! Fix a misaimed 'sizeof' which I only got away with because
ints and pointers are usually the same size.

[originally from svn r8809]

--- a/unfinished/group.c
+++ b/unfinished/group.c
@@ -660,7 +660,7 @@
 	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);