From ff25eaadaebc2ca824b5c5123cbdad42b3237eab Mon Sep 17 00:00:00 2001 From: dwight Date: Sun, 5 Jun 2011 18:20:43 -0400 Subject: [PATCH] compile --- bson/bson-inl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bson/bson-inl.h b/bson/bson-inl.h index 2a982b59e7d..b0ace4e8977 100644 --- a/bson/bson-inl.h +++ b/bson/bson-inl.h @@ -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 {