diff options
| author | Simon Tatham <anakin@pobox.com> | 2010-01-05 18:51:42 +0000 |
|---|---|---|
| committer | Simon Tatham <anakin@pobox.com> | 2010-01-05 18:51:42 +0000 |
| commit | 66a6a930c52c5094d547ef91a09f19991cc707f5 (patch) | |
| tree | 580a7d92e3ebde8703bdef6fd070802d6504664e | |
| parent | ed4b163b6990b3815294f96b94c17752e54d9768 (diff) | |
| download | puzzles-66a6a930c52c5094d547ef91a09f19991cc707f5.zip puzzles-66a6a930c52c5094d547ef91a09f19991cc707f5.tar.gz puzzles-66a6a930c52c5094d547ef91a09f19991cc707f5.tar.bz2 puzzles-66a6a930c52c5094d547ef91a09f19991cc707f5.tar.xz | |
Yikes! Fix a misaimed 'sizeof' which I only got away with because
ints and pointers are usually the same size.
[originally from svn r8809]
| -rw-r--r-- | unfinished/group.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |