src: Use std::numeric_limits<>::max() instead of INT64_MAX
This commit is contained in:
parent
142b433533
commit
0620052f50
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue