File fix-improper-data-conversion.patch of Package parted

diff -up ./libparted/labels/gpt.c.orig ./libparted/labels/gpt.c
--- ./libparted/labels/gpt.c.orig	2008-10-20 10:05:25.000000000 +0200
+++ ./libparted/labels/gpt.c	2008-10-20 10:35:34.000000000 +0200
@@ -674,11 +674,10 @@ _parse_header (PedDisk* disk, GuidPartit
    parted invocation.
 */
    
-	last_usable_if_grown 
-		= PED_CPU_TO_LE64 (disk->dev->length - 2 - 
+	last_usable_if_grown = disk->dev->length - 2 - 
 		((PedSector)(PED_LE32_TO_CPU(gpt->NumberOfPartitionEntries)) * 
 		(PedSector)(PED_LE32_TO_CPU(gpt->SizeOfPartitionEntry)) / 
-		disk->dev->sector_size));
+		disk->dev->sector_size);
 
 	last_usable_min_default = disk->dev->length - 2 - 
 		GPT_DEFAULT_PARTITION_ENTRY_ARRAY_SIZE / disk->dev->sector_size;
openSUSE Build Service is sponsored by