summaryrefslogtreecommitdiff
path: root/src/mongo/db/ftdc/varint_test.cpp
diff options
context:
space:
mode:
authorsamantharitter <samantha.ritter@10gen.com>2016-03-11 12:17:10 -0500
committersamantharitter <samantha.ritter@10gen.com>2016-03-14 10:37:23 -0400
commitb6cb0c91909059518c7e299f21e835ac9f307faa (patch)
tree28e743ae1a0db9612ab56277a016de6b7309a594 /src/mongo/db/ftdc/varint_test.cpp
parenta43ab70f96c74c660e87e4f152cb9286eb2ae263 (diff)
downloadmongo-b6cb0c91909059518c7e299f21e835ac9f307faa.tar.gz
SERVER-22700 Unrepresentable left shift on signed integer is undefined
Diffstat (limited to 'src/mongo/db/ftdc/varint_test.cpp')
-rw-r--r--src/mongo/db/ftdc/varint_test.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/ftdc/varint_test.cpp b/src/mongo/db/ftdc/varint_test.cpp
index cb5f303981c..5b5c5737d46 100644
--- a/src/mongo/db/ftdc/varint_test.cpp
+++ b/src/mongo/db/ftdc/varint_test.cpp
@@ -65,7 +65,7 @@ TEST(FTDCVarIntTest, TestIntCompression) {
// Check numbers composed of repeating hex numbers
for (int i = 0; i < 15; i++) {
- int v = 0;
+ std::uint64_t v = 0;
for (int j = 0; j < 15; j++) {
v = v << 4 | i;
TestInt(v);