src: Use std::numeric_limits<>::max() instead of INT64_MAX

This commit is contained in:
Tatsuhiro Tsujikawa 2014-03-14 00:54:10 +09:00
parent 142b433533
commit 0620052f50
1 changed files with 1 additions and 1 deletions

View File

@ -141,7 +141,7 @@ public:
int64_t get_next_session_id() int64_t get_next_session_id()
{ {
auto session_id = next_session_id_; auto session_id = next_session_id_;
if(next_session_id_ == INT64_MAX) { if(next_session_id_ == std::numeric_limits<int64_t>::max()) {
next_session_id_ = 1; next_session_id_ = 1;
} }
return session_id; return session_id;