1
0
mirror of https://github.com/golang/go synced 2024-11-24 23:57:57 -07:00

runtime: fix tiny build

Reported by Jeff Allen.

R=r, r2
CC=golang-dev
https://golang.org/cl/2385042
This commit is contained in:
Russ Cox 2010-10-07 06:46:01 -04:00
parent 2408a4bbbd
commit 1b6282a799

View 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;
}