Remove unnecessary type conversions

This commit is contained in:
Bjørn Erik Pedersen
2016-03-14 20:31:31 +01:00
parent 3a82ae7114
commit 70739c972e
6 changed files with 9 additions and 9 deletions

View File

@@ -328,7 +328,7 @@ func Seq(args ...interface{}) ([]int, error) {
if last < -100000 {
return nil, errors.New("size of result exeeds limit")
}
size := int(((last - first) / inc) + 1)
size := ((last - first) / inc) + 1
// sanity check
if size <= 0 || size > 2000 {