From 8861d6fdc0dd728af8f2987813599e1fc43d5ee5 Mon Sep 17 00:00:00 2001 From: "josh.macdonald" Date: Wed, 21 Nov 2012 08:42:35 +0000 Subject: Allow parsing values larger than 32bits. --- xdelta3/xdelta3-main.h | 6 +----- 1 file changed, 1 insertion(+), 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, XPR(NT "-%c: minimum value: %"Q"u\n", which, low); return EXIT_FAILURE; } - if (high == 0) - { - high = USIZE_T_MAX; - } - if (x > high) + if (high != 0 && x > high) { XPR(NT "-%c: maximum value: %"Q"u\n", which, high); return EXIT_FAILURE; -- cgit v1.2.3