From: Ruediger Meier <ruediger.meier@xxxxxxxxxxx> Signed-off-by: Ruediger Meier <ruediger.meier@xxxxxxxxxxx> --- disk-utils/fdisk.c | 4 ++-- libfdisk/src/gpt.c | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/disk-utils/fdisk.c b/disk-utils/fdisk.c index 0b22983..2f95fe8 100644 --- a/disk-utils/fdisk.c +++ b/disk-utils/fdisk.c @@ -276,7 +276,7 @@ static int ask_offset(struct fdisk_context *cxt, snprintf(prompt, sizeof(prompt), _("%s (%ju-%ju): "), q, low, high); do { - uint64_t num = 0; + uintmax_t num = 0; char sig = 0, *p; int pwr = 0; @@ -313,7 +313,7 @@ static int ask_offset(struct fdisk_context *cxt, if (num >= low && num <= high) { if (sig && pwr) fdisk_ask_number_set_relative(ask, 1); - return fdisk_ask_number_set_result(ask, num); + return fdisk_ask_number_set_result(ask, (uint64_t)num); } fdisk_warnx(cxt, _("Value out of range.")); } while (1); diff --git a/libfdisk/src/gpt.c b/libfdisk/src/gpt.c index f795b35..cd88df0 100644 --- a/libfdisk/src/gpt.c +++ b/libfdisk/src/gpt.c @@ -2564,7 +2564,8 @@ static int gpt_toggle_partition_flag( unsigned long flag) { struct fdisk_gpt_label *gpt; - uint64_t attrs, tmp; + uint64_t attrs; + uintmax_t tmp; char *bits; const char *name = NULL; int bit = -1, rc; -- 1.8.4.5 -- To unsubscribe from this list: send the line "unsubscribe util-linux" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html