diff --git a/src/traces/tracer-real-time.cpp b/src/traces/tracer-real-time.cpp
index dbc3dee7bac402f3b00ac926ce077af694fd6d77..3074b49da32910d806f8a5ad89501603200e9ad9 100644
--- a/src/traces/tracer-real-time.cpp
+++ b/src/traces/tracer-real-time.cpp
@@ -347,8 +347,8 @@ display( std::ostream& os ) const
 	  else if( (SIZE>>20)||(MSIZE>>20) ) { dec = 20; unit="Mo"; }
 	  else if( (SIZE>>10)||(MSIZE>>10) ) { dec = 10; unit="Ko"; }
  	  os << "[" << std::setw(1)<<std::setprecision(1)
- 	     << ((SIZE+0.0)/(1<<dec)) << unit << "/"
- 	     << std::setprecision(2)<<((MSIZE+0.0)/(1<<dec))
+ 	     << (((double)SIZE+0.0)/(1<<dec)) << unit << "/"
+ 	     << std::setprecision(2)<<(((double)MSIZE+0.0)/(1<<dec))
  	     << unit << "]\t";
 	  if( file->full ) os << "(FULL)";
 	  os.precision(PRECISION);
diff --git a/src/traces/tracer.cpp b/src/traces/tracer.cpp
index ec52a3a75026f4351747468730031adb199bbf9c..36e0e52d746cbdc6c47ffe4af3d754ca7a44d31a 100644
--- a/src/traces/tracer.cpp
+++ b/src/traces/tracer.cpp
@@ -158,7 +158,7 @@ openFiles( const std::string& rootdir_, const std::string& basename_,
 	   const std::string& suffix_  )
 {
   dgDEBUGIN(15);
-  unsigned int n = rootdir_.length ();
+  std::basic_string<char>::size_type n = rootdir_.length ();
   rootdir = rootdir_;
   if( (0<n)&('/'!=rootdir[n-1]) ) rootdir+='/';