aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/args.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/args.c b/lib/args.c
index dd57874e..9b94521d 100644
--- a/lib/args.c
+++ b/lib/args.c
@@ -209,8 +209,8 @@ static void gotflag(struct getoptflagstate *gof, struct opts *opt, int longopt)
} else if (type == '#' || type == '-' || type == '%') {
long long l = (type == '%') ? xparsemillitime(arg) : atolx(arg);
- arg = (type == '%') ? "ms" : "";
if (type == '-' && !ispunct(*arg)) l*=-1;
+ arg = (type == '%') ? "ms" : "";
if (l < opt->val[0].l) help_exit("-%c < %ld%s", opt->c, opt->val[0].l, arg);
if (l > opt->val[1].l) help_exit("-%c > %ld%s", opt->c, opt->val[1].l, arg);