File: 0003-fix-int64-alignment-on-32-bit-platforms.patch

package info (click to toggle)
golang-github-aws-aws-sdk-go 1.21.6%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 104,556 kB
  • sloc: ruby: 193; makefile: 171; xml: 11
file content (23 lines) | stat: -rw-r--r-- 676 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Description: aws/csm: Fix int64 alignment of metricChan on 386 and arm
 TestMetricChanPush panics on 386 and arm due to an unaligned int64
 in type metricChan struct.
Author: Anthony Fok <foka@debian.org>
Origin: vendor
Bug: https://github.com/aws/aws-sdk-go/issues/2784
Last-Update: 2019-08-26
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
diff --git a/aws/csm/metric_chan.go b/aws/csm/metric_chan.go
index 514fc373..48c24bc7 100644
--- a/aws/csm/metric_chan.go
+++ b/aws/csm/metric_chan.go
@@ -15,8 +15,8 @@ var (
 )
 
 type metricChan struct {
-	ch     chan metric
 	paused int64
+	ch     chan metric
 }
 
 func newMetricChan(size int) metricChan {