shithub: puzzles

Download patch

ref: 8ac92e860769b822300115064d090cff0645c7dd
parent: 782a4f3fece388a3b5e541f4b1b11f86f69d5921
author: Simon Tatham <anakin@pobox.com>
date: Sun Jul 17 10:49:13 EDT 2005

Two tiny cleanup patches from James H.

[originally from svn r6111]

--- a/misc.c
+++ b/misc.c
@@ -194,7 +194,7 @@
     }
 }
 
-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;
--- a/untangle.c
+++ b/untangle.c
@@ -284,7 +284,7 @@
 
     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;