Skip to content

Commit

Permalink
fix for 32 bit geo
Browse files Browse the repository at this point in the history
  • Loading branch information
gregs committed Jul 27, 2011
1 parent 0084b65 commit 9551880
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions db/geo/2d.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -933,7 +933,9 @@ namespace mongo {
// Exact check with particular data fields
////
// Can add multiple points
_found += addSpecific( node , keyP, keyOk == BORDER, keyD, newDoc );
int diff = addSpecific( node , keyP, keyOk == BORDER, keyD, newDoc );
if( diff > 0 ) _found += diff;
else _found -= -diff;

}

Expand Down Expand Up @@ -1722,7 +1724,9 @@ namespace mongo {

_points.erase( startErase, _points.end() );

_found += _points.size() - prevSize;
int diff = _points.size() - prevSize;
if( diff > 0 ) _found += diff;
else _found -= -diff;

}

Expand Down

0 comments on commit 9551880

Please sign in to comment.