summaryrefslogtreecommitdiff
path: root/src/mongo/bson/util/simple8b_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/bson/util/simple8b_test.cpp')
-rw-r--r--src/mongo/bson/util/simple8b_test.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mongo/bson/util/simple8b_test.cpp b/src/mongo/bson/util/simple8b_test.cpp
index c612c221aec..df8c849f73b 100644
--- a/src/mongo/bson/util/simple8b_test.cpp
+++ b/src/mongo/bson/util/simple8b_test.cpp
@@ -1437,6 +1437,7 @@ TEST(Simple8b, ResetRLEAfterLargeValue) {
// The second block should be an RLE block
ASSERT_GT(size, 16);
- uint64_t secondBlock = *((uint64_t*)(data.get() + sizeof(uint64_t)));
+ uint64_t secondBlock =
+ ConstDataView(data.get() + sizeof(uint64_t)).read<LittleEndian<uint64_t>>();
ASSERT_TRUE((secondBlock & kBaseSelectorMask) == kRleSelector);
}