diff --git a/ChangeLog b/ChangeLog index 2d804b7a..435a6da3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2009-02-20 Curtis Gedak + + * src/Win_GParted.cc: Fixed compiler warning regarding parentheses. + 2009-02-18 Curtis Gedak * include/Utils.h, diff --git a/src/Win_GParted.cc b/src/Win_GParted.cc index 0d06aa3b..bd4f67fe 100644 --- a/src/Win_GParted.cc +++ b/src/Win_GParted.cc @@ -1605,8 +1605,8 @@ void Win_GParted::activate_format( GParted::FILESYSTEM new_fs ) //check for some limits... fs = gparted_core .get_fs( new_fs ) ; - if ( selected_partition .get_length() < fs .MIN || - fs .MAX && selected_partition .get_length() > fs .MAX ) + if ( ( selected_partition .get_length() < fs .MIN ) || + ( fs .MAX && selected_partition .get_length() > fs .MAX ) ) { Gtk::MessageDialog dialog( *this, String::ucompose( _("Cannot format this file system to %1."),