diff options
Diffstat (limited to 'xdelta3')
-rw-r--r-- | xdelta3/xdelta3-main.h | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/xdelta3/xdelta3-main.h b/xdelta3/xdelta3-main.h index 6fcd423..151b3a8 100644 --- a/xdelta3/xdelta3-main.h +++ b/xdelta3/xdelta3-main.h | |||
@@ -714,11 +714,7 @@ main_atoux (const char* arg, xoff_t *xo, xoff_t low, | |||
714 | XPR(NT "-%c: minimum value: %"Q"u\n", which, low); | 714 | XPR(NT "-%c: minimum value: %"Q"u\n", which, low); |
715 | return EXIT_FAILURE; | 715 | return EXIT_FAILURE; |
716 | } | 716 | } |
717 | if (high == 0) | 717 | if (high != 0 && x > high) |
718 | { | ||
719 | high = USIZE_T_MAX; | ||
720 | } | ||
721 | if (x > high) | ||
722 | { | 718 | { |
723 | XPR(NT "-%c: maximum value: %"Q"u\n", which, high); | 719 | XPR(NT "-%c: maximum value: %"Q"u\n", which, high); |
724 | return EXIT_FAILURE; | 720 | return EXIT_FAILURE; |