diff options
author | Andy Schwerin <schwerin@10gen.com> | 2014-01-07 18:32:28 -0500 |
---|---|---|
committer | Andy Schwerin <schwerin@10gen.com> | 2014-01-07 18:32:28 -0500 |
commit | e129b9b625da164551471d68ccf9d2602abe4a3c (patch) | |
tree | 915c637af9e1d483fb5b0329287318dca22ff5f3 /src/mongo/bson | |
parent | bf0efac7a9ce524341fb3967eb2b41c09afd1f1e (diff) | |
download | mongo-e129b9b625da164551471d68ccf9d2602abe4a3c.tar.gz |
SERVER-11995 Fix Windows compiler error for bson_extract_test.
Diffstat (limited to 'src/mongo/bson')
-rw-r--r-- | src/mongo/bson/util/bson_extract_test.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mongo/bson/util/bson_extract_test.cpp b/src/mongo/bson/util/bson_extract_test.cpp index 78774104063..186833bb531 100644 --- a/src/mongo/bson/util/bson_extract_test.cpp +++ b/src/mongo/bson/util/bson_extract_test.cpp @@ -13,6 +13,7 @@ * limitations under the License. */ +#include <limits> #include <string> #include "mongo/bson/util/bson_extract.h" @@ -114,7 +115,7 @@ TEST(ExtractBSON, ExtractIntegerField) { "a", &v)); ASSERT_EQUALS(ErrorCodes::BadValue, bsonExtractIntegerField( - BSON("a" << nan("")), + BSON("a" << std::numeric_limits<float>::quiet_NaN()), "a", &v)); ASSERT_EQUALS(ErrorCodes::BadValue, bsonExtractIntegerField( |