mirror of
https://github.com/mongodb/mongo.git
synced 2024-12-01 09:32:32 +01:00
compile
This commit is contained in:
parent
e6cd19a8f2
commit
ff25eaadae
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user