aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/github.com/jgautheron/goconst/parser.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/jgautheron/goconst/parser.go')
-rw-r--r--vendor/github.com/jgautheron/goconst/parser.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/vendor/github.com/jgautheron/goconst/parser.go b/vendor/github.com/jgautheron/goconst/parser.go
index 2ed7a9a90..c1edd4c78 100644
--- a/vendor/github.com/jgautheron/goconst/parser.go
+++ b/vendor/github.com/jgautheron/goconst/parser.go
@@ -99,11 +99,11 @@ func (p *Parser) ProcessResults() {
}
// If the value is a number
- if i, err := strconv.Atoi(str); err == nil {
- if p.numberMin != 0 && i < p.numberMin {
+ if i, err := strconv.ParseInt(str, 0, 0); err == nil {
+ if p.numberMin != 0 && i < int64(p.numberMin) {
delete(p.strs, str)
}
- if p.numberMax != 0 && i > p.numberMax {
+ if p.numberMax != 0 && i > int64(p.numberMax) {
delete(p.strs, str)
}
}