mirror of https://github.com/vitalif/grive2
Fix long/int cast errors
parent
459313ecf5
commit
400d9e0c0f
|
@ -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 ) ;
|
||||
|
|
|
@ -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 ;
|
||||
|
|
Loading…
Reference in New Issue