chiark
/
gitweb
/
~ian
/
sgt-puzzles.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ed4b163
)
Yikes! Fix a misaimed 'sizeof' which I only got away with because
author
Simon Tatham
<anakin@pobox.com>
Tue, 5 Jan 2010 18:51:42 +0000
(18:51 +0000)
committer
Simon Tatham
<anakin@pobox.com>
Tue, 5 Jan 2010 18:51:42 +0000
(18:51 +0000)
ints and pointers are usually the same size.
[originally from svn r8809]
unfinished/group.c
patch
|
blob
|
history
diff --git
a/unfinished/group.c
b/unfinished/group.c
index 5dcf586366746f412adb24ca90c04a1fb3bf1d55..3d6e839e3c82a83876887afaf19c6077d8e6e440 100644
(file)
--- 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);