diff --git a/src/pika_slot.cc b/src/pika_slot.cc index e18abde514..515b32b875 100644 --- a/src/pika_slot.cc +++ b/src/pika_slot.cc @@ -552,7 +552,7 @@ void SlotsMgrtTagSlotCmd::DoInitial(PikaCmdArgsType &argv, const CmdInfo* const } std::string str_slot_num = *it++; - if (!slash::string2l(str_slot_num.data(), str_slot_num.size(), &slot_num_) || slot_num_ <= 0) { + if (!slash::string2l(str_slot_num.data(), str_slot_num.size(), &slot_num_) || slot_num_ < 0) { res_.SetRes(CmdRes::kInvalidInt); return; }