From 099219be2a1e58b1b34b0202e1466480a4fa0cbc Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Wed, 18 Apr 2018 06:54:21 +0200 Subject: Align 64-bit atomics 64-bit varibles that are accessed using the Go atomic functions must be 8-byte aligned on 32-bit platforms. Otherwise there are crashes. --- keypair.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'keypair.go') diff --git a/keypair.go b/keypair.go index 283cb92..1ab0649 100644 --- a/keypair.go +++ b/keypair.go @@ -14,10 +14,10 @@ import ( */ type KeyPair struct { + sendNonce uint64 send cipher.AEAD receive cipher.AEAD replayFilter ReplayFilter - sendNonce uint64 isInitiator bool created time.Time localIndex uint32 -- cgit v1.2.3