Fix long/int cast errors

pull/40/head
Vitaliy Filippov 2014-07-23 14:47:16 +04:00
parent 459313ecf5
commit 400d9e0c0f
2 changed files with 3 additions and 3 deletions

View File

@ -257,8 +257,8 @@ void State::Read( const fs::path& filename )
void State::Write( const fs::path& filename ) const
{
Json last_sync ;
last_sync.Add( "sec", Json(m_last_sync.Sec() ) );
last_sync.Add( "nsec", Json(m_last_sync.NanoSec() ) );
last_sync.Add( "sec", Json( (int)m_last_sync.Sec() ) );
last_sync.Add( "nsec", Json( (unsigned)m_last_sync.NanoSec() ) );
Json result ;
result.Add( "last_sync", last_sync ) ;

View File

@ -78,7 +78,7 @@ private :
private :
ResourceTree m_res ;
DateTime m_last_sync ;
long m_cstamp ;
int m_cstamp ;
std::string m_dir ;
std::vector<Entry> m_unresolved ;