diff options
author | Mathias Stearn <mathias@10gen.com> | 2013-09-27 18:06:48 -0400 |
---|---|---|
committer | Mathias Stearn <mathias@10gen.com> | 2013-09-30 13:42:44 -0400 |
commit | 10870bd2798db3c257d35a905985a066a8df82ec (patch) | |
tree | e3cc21ade1dacc2ae448937ad9316092b7a074d2 /src/mongo/db/sorter | |
parent | b81f8287901093ee883926358817488b5a45e247 (diff) | |
download | mongo-10870bd2798db3c257d35a905985a066a8df82ec.tar.gz |
SERVER-10903 Fix negation of unsigned
Diffstat (limited to 'src/mongo/db/sorter')
-rw-r--r-- | src/mongo/db/sorter/sorter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/sorter/sorter.cpp b/src/mongo/db/sorter/sorter.cpp index b43d1763201..acd2eb62594 100644 --- a/src/mongo/db/sorter/sorter.cpp +++ b/src/mongo/db/sorter/sorter.cpp @@ -816,7 +816,7 @@ namespace mongo { try { if (compressed.size() < size_t(_buffer.len()/10*9)) { - const int32_t size = -compressed.size(); // negative means compressed + const int32_t size = -int32_t(compressed.size()); // negative means compressed _file.write(reinterpret_cast<const char*>(&size), sizeof(size)); _file.write(compressed.data(), compressed.size()); } else { |