From f41356f683e1022cae4dc516610f052472cb0361 Mon Sep 17 00:00:00 2001 From: SherkeyXD <57581480+SherkeyXD@users.noreply.github.com> Date: Wed, 2 Jul 2025 19:33:17 +0800 Subject: [PATCH] fix: no unsigned subtraction --- src/MaaCore/Controller/AdbController.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/MaaCore/Controller/AdbController.cpp b/src/MaaCore/Controller/AdbController.cpp index 8e6c834938..a988cc769c 100644 --- a/src/MaaCore/Controller/AdbController.cpp +++ b/src/MaaCore/Controller/AdbController.cpp @@ -696,7 +696,7 @@ bool asst::AdbController::screencap(cv::Mat& image_payload, bool allow_reconnect : -1 }, } }, }; - if (m_screencap_cost.size() - filtered_count > 0) { + if (m_screencap_cost.size() > filtered_count) { info["details"]["fault_times"] = m_screencap_cost.size() - filtered_count; } callback(AsstMsg::ConnectionInfo, info);