diff options
Diffstat (limited to 'src/runtime/defs_linux_arm.go')
| -rw-r--r-- | src/runtime/defs_linux_arm.go | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/runtime/defs_linux_arm.go b/src/runtime/defs_linux_arm.go index 94577fc597..946f5bb230 100644 --- a/src/runtime/defs_linux_arm.go +++ b/src/runtime/defs_linux_arm.go @@ -111,13 +111,14 @@ func (ts *timespec32) setNsec(ns int64) { type timespec struct { tv_sec int64 - tv_nsec int64 + tv_nsec int32 + _ [4]byte // the C ABI aligns int64 to 8 bytes } //go:nosplit func (ts *timespec) setNsec(ns int64) { - ts.tv_sec = int64(ns / 1e9) - ts.tv_nsec = int64(ns % 1e9) + ts.tv_sec = ns / 1e9 + ts.tv_nsec = int32(ns % 1e9) } type stackt struct { |
