diff options
author | Ian Lance Taylor <ian@gcc.gnu.org> | 2017-06-22 19:52:11 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2017-06-22 19:52:11 +0000 |
commit | 61fbdfbe1b1efc68dd02f03b0d915dc2ded0e076 (patch) | |
tree | 5e8a25eabda4d8be4444c8285add6af735966dcc /libgo | |
parent | 60edf8bbba843187e6b4700f41707bb9dd9cec14 (diff) | |
download | gcc-61fbdfbe1b1efc68dd02f03b0d915dc2ded0e076.zip gcc-61fbdfbe1b1efc68dd02f03b0d915dc2ded0e076.tar.gz gcc-61fbdfbe1b1efc68dd02f03b0d915dc2ded0e076.tar.bz2 |
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
Diffstat (limited to 'libgo')
-rw-r--r-- | libgo/runtime/proc.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 |