commit | 637cf04f8a614dedf64d51cca9497a9d707b3d07 | [log] [tgz] |
---|---|---|
author | Mitsuhiro Setoguchi <setomits@gmail.com> | Tue Jun 23 14:25:59 2015 +0900 |
committer | Dustin Sallings <dustin@spy.net> | Mon Jun 22 22:42:53 2015 -0700 |
tree | d6798f7aa9be24c3f7dd9a3f7140c90f613ca000 | |
parent | 00897f070f09f194c26d65afae734ba4c32404e8 [diff] |
Seven elements are enough for max value of int64.
diff --git a/comma.go b/comma.go index 9d0d2ed..20711c1 100644 --- a/comma.go +++ b/comma.go
@@ -18,7 +18,7 @@ v = 0 - v } - parts := []string{"", "", "", "", "", "", "", ""} + parts := []string{"", "", "", "", "", "", ""} j := len(parts) - 1 for v > 999 {