From 2bd2732789208f67c9c82f5097ff3410fb0543e2 Mon Sep 17 00:00:00 2001 From: Anthony Fok Date: Fri, 24 May 2019 11:53:49 -0600 Subject: [PATCH] Use GetInt64 for largenum in viper_test.go to prevent overflow error on 32-bit platforms. Fixes #704 --- viper_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/viper_test.go b/viper_test.go index 74f42fb..a0fc195 100644 --- a/viper_test.go +++ b/viper_test.go @@ -1251,7 +1251,7 @@ func TestMergeConfigMap(t *testing.T) { } assert := func(i int) { - large := v.GetInt("hello.largenum") + large := v.GetInt64("hello.largenum") pop := v.GetInt("hello.pop") if large != 765432101234567 { t.Fatal("Got large num:", large)