Fix sum for 32-bit platform.

This commit is contained in:
Fedor Korotkiy 2020-01-19 01:59:27 +03:00
parent c4d3aeac0c
commit e6d6c4d9ed
3 changed files with 2 additions and 5 deletions

View file

@ -1,3 +0,0 @@
// +build !change
package sum

View file

@ -2,6 +2,6 @@
package sum package sum
func Sum(a, b int) int { func Sum(a, b int64) int64 {
return 0 return 0
} }

View file

@ -6,7 +6,7 @@ import (
) )
type testCase struct { type testCase struct {
a, b, sum int a, b, sum int64
} }
func TestSum(t *testing.T) { func TestSum(t *testing.T) {