From c722047c367a1b24acbef9155935527ed1098656 Mon Sep 17 00:00:00 2001 From: Petr Uzel Date: Wed, 10 Mar 2010 09:11:40 -0700 Subject: [PATCH] Avoid compiler warning Report of this problem can be found in the mailing list archive: http://sourceforge.net/mailarchive/forum.php?thread_name=4B967C26.2090608%40gmail.com&forum_name=gparted-devel --- src/Dialog_Partition_Copy.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Dialog_Partition_Copy.cc b/src/Dialog_Partition_Copy.cc index cc56f4de..9f4ea0c9 100644 --- a/src/Dialog_Partition_Copy.cc +++ b/src/Dialog_Partition_Copy.cc @@ -99,7 +99,7 @@ void Dialog_Partition_Copy::Set_Data( const Partition & selected_partition, cons copied_partition .sectors_used, GParted::UNIT_MIB ) / (TOTAL_MB/500.00) ) ) ; if ( fs .grow ) - fs .MAX = ( ! fs .MAX || fs .MAX > (TOTAL_MB * MEBIBYTE) ) ? (TOTAL_MB * MEBIBYTE) : fs .MAX -= BUF ; + fs .MAX = ( ! fs .MAX || fs .MAX > (TOTAL_MB * MEBIBYTE) ) ? (TOTAL_MB * MEBIBYTE) : fs .MAX - BUF ; else fs .MAX = copied_partition .get_length() ;