]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: fix plan9 warning.
authorKeith Randall <khr@golang.org>
Fri, 4 Apr 2014 15:15:27 +0000 (08:15 -0700)
committerKeith Randall <khr@golang.org>
Fri, 4 Apr 2014 15:15:27 +0000 (08:15 -0700)
I have no idea what this code is for, but it pretty
clearly needs to be uint64, not uint32.

LGTM=aram
R=0intro, aram
CC=golang-codereviews
https://golang.org/cl/84410043

src/pkg/runtime/os_plan9_amd64.c

index b497056c6707a9720915a489979a0781fcaee0fe..a4e5ba81944658d28519d71f797604f138f97c26 100644 (file)
@@ -95,7 +95,7 @@ runtime·sighandler(void *v, int8 *note, G *gp)
                if(ureg->ip != 0) {
                        sp = (uintptr*)ureg->sp;
                        *--sp = ureg->ip;
-                       ureg->sp = (uint32)sp;
+                       ureg->sp = (uint64)sp;
                }
                ureg->ip = (uintptr)runtime·sigpanic;
                return NCONT;