Commit 1b6282a7 authored by Russ Cox's avatar Russ Cox

runtime: fix tiny build

Reported by Jeff Allen.

R=r, r2
CC=golang-dev
https://golang.org/cl/2385042
parent 2408a4bb
...@@ -34,7 +34,7 @@ SysFree(void *v, uintptr n) ...@@ -34,7 +34,7 @@ SysFree(void *v, uintptr n)
// Push pointer back if this is a free // Push pointer back if this is a free
// of the most recent SysAlloc. // of the most recent SysAlloc.
n += 7 & -n; n += 7 & -n;
if(allocp == v+n) if(allocp == (byte*)v+n)
allocp -= n; allocp -= n;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment