Skip to content

Commit

Permalink
fix parse_arg index out of range in main.go
Browse files Browse the repository at this point in the history
  • Loading branch information
juozaspo authored and sofar committed Aug 24, 2018
1 parent 0763bb2 commit e2ab80c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,9 @@ func main() {
var z Limit

x.max = parse_arg(2)
if len(os.Args) >= 3 {
if len(os.Args) > 3 {
y.max = parse_arg(3)
if len(os.Args) >= 4 {
if len(os.Args) > 4 {
z.max = parse_arg(4)
} else {
z.max = x.max
Expand Down

0 comments on commit e2ab80c

Please sign in to comment.