summaryrefslogtreecommitdiff
path: root/src/mongo/bson
diff options
context:
space:
mode:
authorGeert Bosch <geert@mongodb.com>2015-10-26 18:36:37 -0400
committerGeert Bosch <geert@mongodb.com>2015-10-30 23:39:50 -0400
commite2443741a5646030a0f530169c4a73ef14698f0f (patch)
tree9b2800fc90121331dae3d61469e5129a1ff1793f /src/mongo/bson
parentc63c7ccf20e00faf13661c2515034eb8a82b751b (diff)
downloadmongo-e2443741a5646030a0f530169c4a73ef14698f0f.tar.gz
SERVER-15508: Have the shell accept all unsigned Timestamp values
Also rejects negative Timestamp time and increment arguments and canonicalizes types.
Diffstat (limited to 'src/mongo/bson')
-rw-r--r--src/mongo/bson/timestamp.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/bson/timestamp.cpp b/src/mongo/bson/timestamp.cpp
index 299fd87045f..2abd3a8990a 100644
--- a/src/mongo/bson/timestamp.cpp
+++ b/src/mongo/bson/timestamp.cpp
@@ -39,7 +39,7 @@
namespace mongo {
Timestamp Timestamp::max() {
- unsigned int t = static_cast<unsigned int>(std::numeric_limits<int32_t>::max());
+ unsigned int t = static_cast<unsigned int>(std::numeric_limits<uint32_t>::max());
unsigned int i = std::numeric_limits<uint32_t>::max();
return Timestamp(t, i);
}