Package: golang-github-mailru-easyjson / 0.0~git20161103.0.159cdb8-1.1

fix-ftbfs-32bit-archs.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
Fix picked from: https://github.com/mailru/easyjson/pull/150/files
Index: golang-github-mailru-easyjson-0.0~git20161103.0.159cdb8/benchmark/data.go
===================================================================
--- golang-github-mailru-easyjson-0.0~git20161103.0.159cdb8.orig/benchmark/data.go
+++ golang-github-mailru-easyjson-0.0~git20161103.0.159cdb8/benchmark/data.go
@@ -25,12 +25,12 @@ var smallStructData = Entities{
 type SearchMetadata struct {
 	CompletedIn float64 `json:"completed_in"`
 	Count       int     `json:"count"`
-	MaxID       int     `json:"max_id"`
+	MaxID       int64   `json:"max_id"`
 	MaxIDStr    string  `json:"max_id_str"`
 	NextResults string  `json:"next_results"`
 	Query       string  `json:"query"`
 	RefreshURL  string  `json:"refresh_url"`
-	SinceID     int     `json:"since_id"`
+	SinceID     int64   `json:"since_id"`
 	SinceIDStr  string  `json:"since_id_str"`
 }
 
Index: golang-github-mailru-easyjson-0.0~git20161103.0.159cdb8/tests/data.go
===================================================================
--- golang-github-mailru-easyjson-0.0~git20161103.0.159cdb8.orig/tests/data.go
+++ golang-github-mailru-easyjson-0.0~git20161103.0.159cdb8/tests/data.go
@@ -88,10 +88,10 @@ var primitiveTypesString = "{" +
 	`"Int32":` + fmt.Sprint(math.MinInt32) + `,` +
 	`"Int64":` + fmt.Sprint(int64(math.MinInt64)) + `,` +
 
-	`"Uint":` + fmt.Sprint(math.MaxUint32) + `,` +
+	`"Uint":` + fmt.Sprint(uint32(math.MaxUint32)) + `,` +
 	`"Uint8":` + fmt.Sprint(math.MaxUint8) + `,` +
 	`"Uint16":` + fmt.Sprint(math.MaxUint16) + `,` +
-	`"Uint32":` + fmt.Sprint(math.MaxUint32) + `,` +
+	`"Uint32":` + fmt.Sprint(uint32(math.MaxUint32)) + `,` +
 	`"Uint64":` + fmt.Sprint(uint64(math.MaxUint64)) + `,` +
 
 	`"IntString":"` + fmt.Sprint(math.MinInt32) + `",` +
@@ -100,10 +100,10 @@ var primitiveTypesString = "{" +
 	`"Int32String":"` + fmt.Sprint(math.MinInt32) + `",` +
 	`"Int64String":"` + fmt.Sprint(int64(math.MinInt64)) + `",` +
 
-	`"UintString":"` + fmt.Sprint(math.MaxUint32) + `",` +
+	`"UintString":"` + fmt.Sprint(uint32(math.MaxUint32)) + `",` +
 	`"Uint8String":"` + fmt.Sprint(math.MaxUint8) + `",` +
 	`"Uint16String":"` + fmt.Sprint(math.MaxUint16) + `",` +
-	`"Uint32String":"` + fmt.Sprint(math.MaxUint32) + `",` +
+	`"Uint32String":"` + fmt.Sprint(uint32(math.MaxUint32)) + `",` +
 	`"Uint64String":"` + fmt.Sprint(uint64(math.MaxUint64)) + `",` +
 
 	`"Float32":` + fmt.Sprint(1.5) + `,` +
@@ -191,10 +191,10 @@ var namedPrimitiveTypesString = "{" +
 	`"Int32":` + fmt.Sprint(math.MinInt32) + `,` +
 	`"Int64":` + fmt.Sprint(int64(math.MinInt64)) + `,` +
 
-	`"Uint":` + fmt.Sprint(math.MaxUint32) + `,` +
+	`"Uint":` + fmt.Sprint(uint32(math.MaxUint32)) + `,` +
 	`"Uint8":` + fmt.Sprint(math.MaxUint8) + `,` +
 	`"Uint16":` + fmt.Sprint(math.MaxUint16) + `,` +
-	`"Uint32":` + fmt.Sprint(math.MaxUint32) + `,` +
+	`"Uint32":` + fmt.Sprint(uint32(math.MaxUint32)) + `,` +
 	`"Uint64":` + fmt.Sprint(uint64(math.MaxUint64)) + `,` +
 
 	`"Float32":` + fmt.Sprint(1.5) + `,` +