diff options
author | Justin Seyster <justin.seyster@mongodb.com> | 2018-05-18 16:16:29 -0400 |
---|---|---|
committer | Justin Seyster <justin.seyster@mongodb.com> | 2018-05-22 18:29:41 -0400 |
commit | a9deb701a7533b566a2eb703aff70bf2f03b147c (patch) | |
tree | cc615998ab87302fe3d1b725ff8580d12834670b /src/mongo/dbtests/jsobjtests.cpp | |
parent | adad00367e75e7c71a781e4610321f7be5d98aa6 (diff) | |
download | mongo-a9deb701a7533b566a2eb703aff70bf2f03b147c.tar.gz |
SERVER-34975 Treat an OID-embedded timestamp as unsigned.
Diffstat (limited to 'src/mongo/dbtests/jsobjtests.cpp')
-rw-r--r-- | src/mongo/dbtests/jsobjtests.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/dbtests/jsobjtests.cpp b/src/mongo/dbtests/jsobjtests.cpp index b670cab1dae..68ce6c52d63 100644 --- a/src/mongo/dbtests/jsobjtests.cpp +++ b/src/mongo/dbtests/jsobjtests.cpp @@ -1390,7 +1390,7 @@ public: oid.init(base); ASSERT_EQUALS(base.toMillisSinceEpoch() / 1000, oid.asDateT().toMillisSinceEpoch() / 1000); - ASSERT_EQUALS(base.toTimeT(), oid.asTimeT()); + ASSERT_EQUALS(base.toTimeT(), static_cast<time_t>(oid.getTimestamp())); } }; |