Skip to content

Commit

Permalink
Add cast
Browse files Browse the repository at this point in the history
  • Loading branch information
nekiro committed Dec 9, 2024
1 parent 202873c commit e11bfe3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/protocol.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class Protocol : public std::enable_shared_from_this<Protocol>
uint32_t getNextSequenceId()
{
const auto sequence = ++sequenceNumber;
if (sequenceNumber >= std::numeric_limits<int32_t>::max()) {
if (sequenceNumber >= static_cast<uint32_t>(std::numeric_limits<int32_t>::max())) {
sequenceNumber = 0;
}

Expand Down

0 comments on commit e11bfe3

Please sign in to comment.