aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2019-04-25 13:53:36 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2019-04-25 13:53:44 +0200
commitce1025419d55a80a5e380826b741273aff2ed99e (patch)
tree47c1fbdffb1952a9d33202117ec53d15c04c941a
parentringlogger: fix up test (diff)
downloadwireguard-windows-ce1025419d55a80a5e380826b741273aff2ed99e.tar.xz
wireguard-windows-ce1025419d55a80a5e380826b741273aff2ed99e.zip
ringlogger: ensure that int64 in member is 64-bit aligned on 32-bit machines
-rw-r--r--ringlogger/ringlogger_windows.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/ringlogger/ringlogger_windows.go b/ringlogger/ringlogger_windows.go
index f0e7e50a..1e0b4b76 100644
--- a/ringlogger/ringlogger_windows.go
+++ b/ringlogger/ringlogger_windows.go
@@ -30,9 +30,9 @@ type logLine struct {
}
type logMem struct {
+ magic uint32
nextIndex uint32
lines [maxLines]logLine
- magic uint32
}
type Ringlogger struct {