diff --git a/services/ui/driver/input_event.cpp b/services/ui/driver/input_event.cpp index edadfe5b87d7013b1997472bd0f2fb7657d4d034..c378bf120f993969b4658b018ef2e13ce2d960ef 100644 --- a/services/ui/driver/input_event.cpp +++ b/services/ui/driver/input_event.cpp @@ -108,7 +108,7 @@ int InputEvent::HdfInit() return ret; } - for (int i = 0; i < sta.size(); i++) { + for (size_t i = 0; i < sta.size(); i++) { uint32_t idx = sta[i].devIndex; uint32_t dev = sta[i].devType; if ((idx == 0) || (inputInterface_->OpenInputDevice(idx) == HDF_FAILURE)) {