Skip to content

Commit

Permalink
Fix tests on i386
Browse files Browse the repository at this point in the history
  • Loading branch information
stapelberg committed May 6, 2017
1 parent 0ca9ea5 commit 17e4fbe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion yaml_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 17e4fbe

Please sign in to comment.