From e4b5a574a659934eb7c91a1f319991a3a7003eda Mon Sep 17 00:00:00 2001 From: ldy Date: Tue, 29 Apr 2025 12:13:30 +0000 Subject: [PATCH] update services/ui/driver/input_event.cpp. Signed-off-by: ldy --- services/ui/driver/input_event.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/ui/driver/input_event.cpp b/services/ui/driver/input_event.cpp index edadfe5b..c378bf12 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)) { -- Gitee