diff options
Diffstat (limited to 'src/mongo/db/storage/key_string.cpp')
-rw-r--r-- | src/mongo/db/storage/key_string.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/storage/key_string.cpp b/src/mongo/db/storage/key_string.cpp index 2cd548aadf7..0df4a8d8096 100644 --- a/src/mongo/db/storage/key_string.cpp +++ b/src/mongo/db/storage/key_string.cpp @@ -181,7 +181,7 @@ namespace mongo { template <typename T> T readType(BufReader* reader, bool inverted) { // TODO for C++11 to static_assert that T is integral - T t = ConstDataView(static_cast<const char*>(reader->skip(sizeof(T)))).readNative<T>(); + T t = ConstDataView(static_cast<const char*>(reader->skip(sizeof(T)))).read<T>(); if (inverted) return ~t; return t; |