diff options
author | Vincent Bernat <vincent@bernat.im> | 2017-12-16 13:43:52 +0100 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2017-12-17 00:22:00 +0900 |
commit | a44dd5d4116b7b42b5e97b268d30fc7904c25b77 (patch) | |
tree | ec434b7a0541afde35ec00432c81fa2bf898cb35 /client/client_test.go | |
parent | 1227aceb31af1bdc817ee4d89a72a7a7db874347 (diff) |
packet/bgp: use strconv.FormatInt() instead of strconv.Itoa() in tests
Itoa() takes an int which will only be 32-bit on i386 and similar
architectures. In tests, some constants are too big. Therefore, switch
all uses of strconv.Itoa() to strconv.FormatInt().
Without this change, we get:
```
src/github.com/osrg/gobgp/packet/bgp/bgp_test.go:1123:41: constant 2864434397 overflows int
```
Diffstat (limited to 'client/client_test.go')
0 files changed, 0 insertions, 0 deletions