0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-12-01 09:32:32 +01:00
This commit is contained in:
dwight 2011-06-05 18:20:43 -04:00
parent e6cd19a8f2
commit ff25eaadae

View File

@ -267,7 +267,7 @@ namespace mongo {
inline int BSONObj::getIntField(const char *name) const {
BSONElement e = getField(name);
return e.isNumber() ? (int) e.number() : INT_MIN;
return e.isNumber() ? (int) e.number() : std::numeric_limits< int >::min();
}
inline bool BSONObj::getBoolField(const char *name) const {