chiark / gitweb /
Two tiny cleanup patches from James H.
authorSimon Tatham <anakin@pobox.com>
Sun, 17 Jul 2005 14:49:13 +0000 (14:49 +0000)
committerSimon Tatham <anakin@pobox.com>
Sun, 17 Jul 2005 14:49:13 +0000 (14:49 +0000)
[originally from svn r6111]

misc.c
untangle.c

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;
index 9fc786bebf5df8308ea5e63c69da7f82343c2d8c..5d01e9abc4f3191a3fe1fdc7c71ba244eda53dec 100644 (file)
@@ -284,7 +284,7 @@ static unsigned long squarert(unsigned long n) {
 
     d = n;
     a = 0;
-    b = 1 << 30;                      /* largest available power of 4 */
+    b = 1L << 30;                     /* largest available power of 4 */
     do {
         a >>= 1;
         di = 2*a + b;