~mdw
/
sgt
/
puzzles
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Since the lack of this has caused portability issues in the past:
[sgt/puzzles]
/
tents.c
diff --git
a/tents.c
b/tents.c
index
bc07b4b
..
bab0de7
100644
(file)
--- a/
tents.c
+++ b/
tents.c
@@
-1803,7
+1803,8
@@
static void game_compute_size(game_params *params, int tilesize,
int *x, int *y)
{
/* fool the macros */
int *x, int *y)
{
/* fool the macros */
- struct dummy { int tilesize; } dummy = { tilesize }, *ds = &dummy;
+ struct dummy { int tilesize; } dummy, *ds = &dummy;
+ dummy.tilesize = tilesize;
*x = TLBORDER + BRBORDER + TILESIZE * params->w;
*y = TLBORDER + BRBORDER + TILESIZE * params->h;
*x = TLBORDER + BRBORDER + TILESIZE * params->w;
*y = TLBORDER + BRBORDER + TILESIZE * params->h;