From 61fbdfbe1b1efc68dd02f03b0d915dc2ded0e076 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Thu, 22 Jun 2017 19:52:11 +0000 Subject: runtime: fix type cast in assignment to gcnextsp in C code Patch from Rainer Orth. Reviewed-on: https://go-review.googlesource.com/46459 From-SVN: r249575 --- libgo/runtime/proc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libgo/runtime/proc.c') diff --git a/libgo/runtime/proc.c b/libgo/runtime/proc.c index 303a1b5..1272669 100644 --- a/libgo/runtime/proc.c +++ b/libgo/runtime/proc.c @@ -678,7 +678,7 @@ doentersyscallblock(uintptr pc, uintptr sp) { void *v; - g->gcnextsp = (byte *) &v; + g->gcnextsp = (uintptr)(&v); } #endif -- cgit v1.1