mirror of
git://git.tartarus.org/simon/puzzles.git
synced 2025-04-21 16:05:44 -07:00
Yikes! Fix a misaimed 'sizeof' which I only got away with because
ints and pointers are usually the same size. [originally from svn r8809]
This commit is contained in:
@ -660,7 +660,7 @@ done
|
|||||||
for (i = 1; i < w; i++)
|
for (i = 1; i < w; i++)
|
||||||
for (j = 1; j < w; j++)
|
for (j = 1; j < w; j++)
|
||||||
indices[k++] = i*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++) {
|
for (i = 0; i < k; i++) {
|
||||||
memcpy(soln2, grid, a);
|
memcpy(soln2, grid, a);
|
||||||
|
Reference in New Issue
Block a user