Skip to content

Commit

Permalink
p must be >=0
Browse files Browse the repository at this point in the history
  • Loading branch information
vmagnin committed Oct 30, 2021
1 parent 76eeaf8 commit 8c4500c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/taptempo.f90
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ subroutine manage_command_line
i = i + 1
call get_command_argument(i, value=args)
read(args, *) p
p = min(p, 5)
p = max(0, min(p, 5)) ! 0 <= p <= 5
case("-r", "--reset-time")
i = i + 1
call get_command_argument(i, value=args)
Expand Down

0 comments on commit 8c4500c

Please sign in to comment.