]>
Commit | Line | Data |
---|---|---|
057d5444 JR |
1 | --- grive-27817e835fe115ebbda5410ec904aa49a2ad01f1/libgrive/src/drive/State.cc~ 2013-05-02 18:40:04.000000000 +0200 |
2 | +++ grive-27817e835fe115ebbda5410ec904aa49a2ad01f1/libgrive/src/drive/State.cc 2013-12-04 11:38:00.382356428 +0100 | |
3 | @@ -248,12 +248,12 @@ | |
4 | void State::Write( const fs::path& filename ) const | |
5 | { | |
6 | Json last_sync ; | |
7 | - last_sync.Add( "sec", Json(m_last_sync.Sec() ) ); | |
8 | - last_sync.Add( "nsec", Json(m_last_sync.NanoSec() ) ); | |
9 | + last_sync.Add( "sec", Json((std::size_t)m_last_sync.Sec() ) ); | |
10 | + last_sync.Add( "nsec", Json((std::size_t)m_last_sync.NanoSec() ) ); | |
11 | ||
12 | Json result ; | |
13 | result.Add( "last_sync", last_sync ) ; | |
14 | - result.Add( "change_stamp", Json(m_cstamp) ) ; | |
15 | + result.Add( "change_stamp", Json((std::size_t)m_cstamp) ) ; | |
16 | ||
17 | std::ofstream fs( filename.string().c_str() ) ; | |
18 | fs << result ; |