From d29888078aa85f6ebb20d5c24b9b2799cfef133f Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Thu, 13 Nov 2008 14:56:17 +0100 Subject: [PATCH] fdisk: cannot create partition with starting beyond 1 TB fdisk(8) uses "unsigned long long" for all internal calculations -- let use it for start of partition too. Address-Red-Hat-Bugzilla: #471369 Signed-off-by: Karel Zak --- fdisk/fdisk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fdisk/fdisk.c b/fdisk/fdisk.c index 0559717d..33679f5a 100644 --- a/fdisk/fdisk.c +++ b/fdisk/fdisk.c @@ -2033,7 +2033,7 @@ add_partition(int n, int sys) { do { temp = start; for (i = 0; i < partitions; i++) { - int lastplusoff; + unsigned int lastplusoff; if (start == ptes[i].offset) start += sector_offset; -- 2.39.5