Skip to content

Commit

Permalink
prevent windows from treating max as a macro SERVER-4367
Browse files Browse the repository at this point in the history
  • Loading branch information
RedBeard0531 committed Feb 14, 2012
1 parent 33508c2 commit a0e3867
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mongo/bson/util/misc.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
};
Expand Down

0 comments on commit a0e3867

Please sign in to comment.