Browse files

prevent windows from treating max as a macro SERVER-4367

  • Loading branch information...
1 parent 33508c2 commit a0e38678ffd22d9a2f428e27b603b6380838276d @RedBeard0531 RedBeard0531 committed Feb 13, 2012
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;
}
};

0 comments on commit a0e3867

Please sign in to comment.