summaryrefslogtreecommitdiffstats
path: root/bin/dd/args.c
diff options
context:
space:
mode:
Diffstat (limited to 'bin/dd/args.c')
-rw-r--r--bin/dd/args.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/dd/args.c b/bin/dd/args.c
index 96d9e35..8e6fab6 100644
--- a/bin/dd/args.c
+++ b/bin/dd/args.c
@@ -458,7 +458,7 @@ get_off_t(const char *val)
mult = (quad_t)get_off_t(expr + 1);
prevnum = num;
num *= mult;
- if ((prevnum > 0) != (num > 0) && num / mult == prevnum)
+ if ((prevnum > 0) == (num > 0) && num / mult == prevnum)
break;
erange:
errx(1, "%s: %s", oper, strerror(ERANGE));
OpenPOWER on IntegriCloud