Fix warning.

GitOrigin-RevId: 033adb463f56b8135180dd22d4c48e82b967fe39
This commit is contained in:
levlam 2020-08-28 14:53:22 +03:00
parent a55fd22716
commit 3d8d4bcf1c

View File

@ -223,7 +223,7 @@ class TQueueImpl : public TQueue {
if (from_id.value() > q.tail_id.value() + 10) {
return Status::Error("Specified from_id is in the future");
}
if (from_id.value() < get_queue_head(q).value() - MAX_QUEUE_EVENTS) {
if (from_id.value() < get_queue_head(q).value() - static_cast<int32>(MAX_QUEUE_EVENTS)) {
return Status::Error("Specified from_id is in the past");
}