summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjosh.macdonald <jmacd@users.noreply.github.com>2012-11-21 08:42:35 +0000
committerjosh.macdonald <jmacd@users.noreply.github.com>2012-11-21 08:42:35 +0000
commit8861d6fdc0dd728af8f2987813599e1fc43d5ee5 (patch)
tree97ffb25b3d24c43b3c5fa2efdc3ade95731e6a2a
parentb0948838916a55874e89aa92ba8e72531fdea058 (diff)
Allow parsing values larger than 32bits.
-rw-r--r--xdelta3/xdelta3-main.h6
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;