summaryrefslogtreecommitdiff
path: root/src/runtime/os1_openbsd.go
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2014-11-14 14:50:00 -0500
committerRuss Cox <rsc@golang.org>2014-11-14 14:50:00 -0500
commit307b9d78ce5a9975b2167786a89a7a8e96c2ab57 (patch)
tree4910d3e3c853ef5fbeed6b1375a22ec319d7fd5b /src/runtime/os1_openbsd.go
parent0b7f128e76956367ddb4f9ddbee4477d3b462e96 (diff)
downloadgo-307b9d78ce5a9975b2167786a89a7a8e96c2ab57.tar.gz
[dev.cc] runtime: change set_sec to take int64
Fixes build. Tested that all these systems can make.bash. TBR=austin CC=golang-codereviews https://codereview.appspot.com/177770043
Diffstat (limited to 'src/runtime/os1_openbsd.go')
-rw-r--r--src/runtime/os1_openbsd.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtime/os1_openbsd.go b/src/runtime/os1_openbsd.go
index 5c6ea7412..d5ffe10a8 100644
--- a/src/runtime/os1_openbsd.go
+++ b/src/runtime/os1_openbsd.go
@@ -56,7 +56,7 @@ func semasleep(ns int64) int32 {
var ts timespec
var nsec int32
ns += nanotime()
- ts.set_sec(timediv(ns, 1000000000, &nsec))
+ ts.set_sec(int64(timediv(ns, 1000000000, &nsec)))
ts.set_nsec(nsec)
tsp = &ts
}