Commit 0620052f authored by Tatsuhiro Tsujikawa's avatar Tatsuhiro Tsujikawa

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

parent 142b4335
......@@ -141,7 +141,7 @@ public:
int64_t get_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;
}
return session_id;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment