]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: fix tiny build
authorRuss Cox <rsc@golang.org>
Thu, 7 Oct 2010 10:46:01 +0000 (06:46 -0400)
committerRuss Cox <rsc@golang.org>
Thu, 7 Oct 2010 10:46:01 +0000 (06:46 -0400)
Reported by Jeff Allen.

R=r, r2
CC=golang-dev
https://golang.org/cl/2385042

src/pkg/runtime/tiny/mem.c

index 8c17b547719fce5a810b9937f835ad882b6976f8..fbedff27cec09e405c216aad997363d105ee331e 100644 (file)
@@ -34,7 +34,7 @@ SysFree(void *v, uintptr n)
        // Push pointer back if this is a free
        // of the most recent SysAlloc.
        n += 7 & -n;
-       if(allocp == v+n)
+       if(allocp == (byte*)v+n)
                allocp -= n;
 }