MSVC 7.1 build fixes

This commit is contained in:
Aleksandar Fabijanic
2013-03-30 13:02:16 -05:00
parent 6719d3448f
commit 5cde6d34df
4 changed files with 44 additions and 15 deletions

View File

@@ -271,7 +271,7 @@ inline void BSONReader::read<Timestamp>(Timestamp& to)
{
Poco::Int64 value;
_reader >> value;
to = Timestamp::fromEpochTime(value / 1000);
to = Timestamp::fromEpochTime(static_cast<std::time_t>(value / 1000));
to += (value % 1000 * 1000);
}