Fix sum for 32-bit platform.
This commit is contained in:
parent
c4d3aeac0c
commit
e6d6c4d9ed
3 changed files with 2 additions and 5 deletions
|
@ -1,3 +0,0 @@
|
|||
// +build !change
|
||||
|
||||
package sum
|
|
@ -2,6 +2,6 @@
|
|||
|
||||
package sum
|
||||
|
||||
func Sum(a, b int) int {
|
||||
func Sum(a, b int64) int64 {
|
||||
return 0
|
||||
}
|
||||
|
|
|
@ -6,7 +6,7 @@ import (
|
|||
)
|
||||
|
||||
type testCase struct {
|
||||
a, b, sum int
|
||||
a, b, sum int64
|
||||
}
|
||||
|
||||
func TestSum(t *testing.T) {
|
||||
|
|
Loading…
Reference in a new issue