Skip to content

Commit

Permalink
fix darwin clang build issue
Browse files Browse the repository at this point in the history
  • Loading branch information
LindaSummer committed Jun 22, 2024
1 parent dc4b2a3 commit 7101e59
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/commands/cmd_stream.cc
Original file line number Diff line number Diff line change
Expand Up @@ -393,8 +393,8 @@ class CommandAutoClaim : public Commander {
if (parser.EatEqICase("count")) {
uint64_t count = GET_OR_RET(parser.TakeInt<uint64_t>());
constexpr uint64_t min_count = 1;
uint64_t max_count =
std::numeric_limits<int64_t>::max() / (std::max(sizeof(StreamEntryID), options_.attempts_factors));
uint64_t max_count = std::numeric_limits<int64_t>::max() /
(std::max(static_cast<uint64_t>(sizeof(StreamEntryID)), options_.attempts_factors));
if (count < min_count || count > max_count) {
return {Status::RedisParseErr, "COUNT must be > 0"};
}
Expand Down

0 comments on commit 7101e59

Please sign in to comment.