Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

prevent windows from treating max as a macro SERVER-4367

  • Loading branch information...
commit a0e38678ffd22d9a2f428e27b603b6380838276d 1 parent 33508c2
@RedBeard0531 RedBeard0531 authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  src/mongo/bson/util/misc.h
View
2  src/mongo/bson/util/misc.h
@@ -93,7 +93,7 @@ namespace mongo {
time_t toTimeT() const {
// cant use uassert from bson/util
assert((long long)millis >= 0); // TODO when millis is signed, delete
- assert(((long long)millis/1000) < numeric_limits<time_t>::max());
+ assert(((long long)millis/1000) < (numeric_limits<time_t>::max)());
return millis / 1000;
}
};
Please sign in to comment.
Something went wrong with that request. Please try again.