diff options
author | Mathias Stearn <mathias@10gen.com> | 2017-07-25 09:05:13 -0400 |
---|---|---|
committer | Mathias Stearn <mathias@10gen.com> | 2017-07-26 15:13:34 -0400 |
commit | b35c594738261edce2134b0bc7fb3e7a06e85fc3 (patch) | |
tree | c50a5444e14d7f0dd3756e188642cac42bfe2a24 /src/mongo/db/exec/geo_near.cpp | |
parent | 2f81beb98df291431c36dcd5789828297b8c41a8 (diff) | |
download | mongo-b35c594738261edce2134b0bc7fb3e7a06e85fc3.tar.gz |
SERVER-29887 address clang-4.0 warnings in geo code
Diffstat (limited to 'src/mongo/db/exec/geo_near.cpp')
-rw-r--r-- | src/mongo/db/exec/geo_near.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/exec/geo_near.cpp b/src/mongo/db/exec/geo_near.cpp index 9bb94def100..49ee2feb6f9 100644 --- a/src/mongo/db/exec/geo_near.cpp +++ b/src/mongo/db/exec/geo_near.cpp @@ -288,7 +288,7 @@ public: // Since appendVertexNeighbors(level, output) requires level < hash.getBits(), // we have to start to find documents at most GeoHash::kMaxBits - 1. Thus the finest // search area is 16 * finest cell area at GeoHash::kMaxBits. - _currentLevel = std::max(0u, hashParams.bits - 1u); + _currentLevel = std::max(0, hashParams.bits - 1); } PlanStage::StageState work(OperationContext* opCtx, |