]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: fix freebsd build. Assignment is int32* on 32 bit
authorKeith Randall <khr@golang.org>
Wed, 30 Jul 2014 16:18:00 +0000 (09:18 -0700)
committerKeith Randall <khr@golang.org>
Wed, 30 Jul 2014 16:18:00 +0000 (09:18 -0700)
machines and int64* on 64 bit machines.

LGTM=bradfitz
R=golang-codereviews, bradfitz
CC=golang-codereviews
https://golang.org/cl/117330044

src/pkg/runtime/os_freebsd.c

index 9299dbdc0469581dea977918ad6378a7ef6f51dc..367fe0ba0dea7e92471f11ae5d30c59b6a58579e 100644 (file)
@@ -110,7 +110,7 @@ runtime·newosproc(M *mp, void *stk)
        param.stack_base = (void*)mp->g0->stackbase;
        param.stack_size = (byte*)stk - (byte*)mp->g0->stackbase;
 
-       param.child_tid = (intptr*)&mp->procid;
+       param.child_tid = (void*)&mp->procid;
        param.parent_tid = nil;
        param.tls_base = (void*)&mp->tls[0];
        param.tls_size = sizeof mp->tls;