From fa3fd80067581e20eae30c37d1abc77bfcd17eeb Mon Sep 17 00:00:00 2001 From: pwx1285814 Date: Mon, 30 Sep 2024 11:03:01 +0800 Subject: [PATCH] =?UTF-8?q?=E5=91=8A=E8=AD=A6=E6=B8=85=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: pwx1285814 Change-Id: I9364c2dd941ee16037c6caae15c02ef539495a39 --- services/common/utils/src/dscreen_maprelation.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/services/common/utils/src/dscreen_maprelation.cpp b/services/common/utils/src/dscreen_maprelation.cpp index f921be55..43bd88c9 100644 --- a/services/common/utils/src/dscreen_maprelation.cpp +++ b/services/common/utils/src/dscreen_maprelation.cpp @@ -115,7 +115,8 @@ void from_json(const json &j, DisplayRect &rect) int32_t startY = j[KEY_POINT_START_Y].get(); int32_t width = j[KEY_WIDTH].get(); int32_t height = j[KEY_HEIGHT].get(); - if ((width > DSCREEN_MAX_VIDEO_DATA_WIDTH) || (height > DSCREEN_MAX_VIDEO_DATA_HEIGHT)) { + if ((width > static_cast(DSCREEN_MAX_VIDEO_DATA_WIDTH)) || + (height > static_cast(DSCREEN_MAX_VIDEO_DATA_HEIGHT))) { DHLOGE("Screen video width or height exceeds the maximum limit."); return; } -- Gitee