used static_cast<> instead of C-style type conversion. install gparted

* include/Utils.h: used static_cast<> instead of C-style type conversion.
* src/Makefile.am: install gparted binary in bin/ instead of sbin/ (as soon as i've time i want to implement a read-only modus)
This commit is contained in:
Bart Hakvoort 2005-01-18 21:27:59 +00:00
parent 894c39051b
commit fb4af15865
3 changed files with 12 additions and 7 deletions

View File

@ -1,3 +1,8 @@
2005-01-11 Bart Hakvoort <hakvoort@cvs.gnome.org>
* include/Utils.h: used static_cast<> instead of C-style type conversion.
* src/Makefile.am: install gparted binary in bin/ instead of sbin/ (as soon as i've time i want to implement a read-only modus)
2005-01-11 Bart Hakvoort <hakvoort@cvs.gnome.org>
* src/Win_GParted.cc: activate_convert used old filesystem instead of new one for checks. fixed.

View File

@ -62,14 +62,14 @@ struct FS
//globally used convenience functions
inline long Sector_To_MB( Sector sectors )
{
return (long) ( (double) sectors * 512/1024/1024 +0.5) ;
}
inline long Round( double double_value )
{
return (long) ( double_value + 0.5) ;
return static_cast<long> ( double_value + 0.5 ) ;
}
inline long Sector_To_MB( Sector sectors )
{
return Round( sectors * 0.000488281250 ) ; // that's what 512/1024/1024 gives you :)
}
inline Sector Abs( Sector sectors )

View File

@ -10,7 +10,7 @@ AM_CXXFLAGS =\
-Wall\
-g
sbin_PROGRAMS = gparted
bin_PROGRAMS = gparted
gparted_SOURCES = \
Device.cc\