From b143feb1431b58c02be6edca6bc5f6067b22a14d Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Thu, 4 Sep 2014 01:38:49 -0400 Subject: [PATCH] runtime: fix int64 reconstruction in semasleep I had this right in one of my clients, but apparently not the one I submitted from. Fixes 386 builds. TBR=dfc CC=golang-codereviews https://golang.org/cl/138000045 --- src/pkg/runtime/os_darwin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pkg/runtime/os_darwin.c b/src/pkg/runtime/os_darwin.c index 19181d60df..d3890eee52 100644 --- a/src/pkg/runtime/os_darwin.c +++ b/src/pkg/runtime/os_darwin.c @@ -418,7 +418,7 @@ semasleep(void) int32 r, secs, nsecs; int64 ns; - ns = g->m->scalararg[0] | g->m->scalararg[1]<<32; + ns = (int64)(uint32)g->m->scalararg[0] | (int64)(uint32)g->m->scalararg[1]<<32; g->m->scalararg[0] = 0; g->m->scalararg[1] = 0; -- 2.48.1