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:
782a4f3
)
Two tiny cleanup patches from James H.
author
Simon Tatham
<anakin@pobox.com>
Sun, 17 Jul 2005 14:49:13 +0000
(14:49 +0000)
committer
Simon Tatham
<anakin@pobox.com>
Sun, 17 Jul 2005 14:49:13 +0000
(14:49 +0000)
[originally from svn r6111]
misc.c
patch
|
blob
|
history
untangle.c
patch
|
blob
|
history
diff --git
a/misc.c
b/misc.c
index 5ad4d0b5fc209af0f20a8b2b649613d3ad749a91..91778d8da9392bcf2b8c05874bd20460474a2146 100644
(file)
--- a/
misc.c
+++ b/
misc.c
@@
-194,7
+194,7
@@
void game_mkhighlight(frontend *fe, float *ret,
}
}
-void memswap(void *av, void *bv, int size)
+
static
void memswap(void *av, void *bv, int size)
{
char tmpbuf[512];
char *a = av, *b = bv;
diff --git
a/untangle.c
b/untangle.c
index 9fc786bebf5df8308ea5e63c69da7f82343c2d8c..5d01e9abc4f3191a3fe1fdc7c71ba244eda53dec 100644
(file)
--- a/
untangle.c
+++ b/
untangle.c
@@
-284,7
+284,7
@@
static unsigned long squarert(unsigned long n) {
d = n;
a = 0;
- b = 1
<< 30;
/* largest available power of 4 */
+ b = 1
L << 30;
/* largest available power of 4 */
do {
a >>= 1;
di = 2*a + b;