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:
parent
894c39051b
commit
fb4af15865
|
@ -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.
|
||||
|
|
|
@ -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 )
|
||||
|
|
|
@ -10,7 +10,7 @@ AM_CXXFLAGS =\
|
|||
-Wall\
|
||||
-g
|
||||
|
||||
sbin_PROGRAMS = gparted
|
||||
bin_PROGRAMS = gparted
|
||||
|
||||
gparted_SOURCES = \
|
||||
Device.cc\
|
||||
|
|
Loading…
Reference in New Issue