From 17e4fbe4c17909dc8b1967da1e6417248097b558 Mon Sep 17 00:00:00 2001 From: Michael Stapelberg <stapelberg@users.noreply.github.com> Date: Sat, 6 May 2017 11:24:52 +0200 Subject: [PATCH] Fix tests on i386 --- yaml_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yaml_test.go b/yaml_test.go index 505af45..461038b 100644 --- a/yaml_test.go +++ b/yaml_test.go @@ -19,7 +19,7 @@ type MarshalTest struct { func TestMarshal(t *testing.T) { f32String := strconv.FormatFloat(math.MaxFloat32, 'g', -1, 32) s := MarshalTest{"a", math.MaxInt64, math.MaxFloat32} - e := []byte(fmt.Sprintf("A: a\nB: %d\nC: %s\n", math.MaxInt64, f32String)) + e := []byte(fmt.Sprintf("A: a\nB: %d\nC: %s\n", int64(math.MaxInt64), f32String)) y, err := Marshal(s) if err != nil { -- 2.28.0