From cfb3a8bbb7ea3e0b514ce853e164279fda44eff2 Mon Sep 17 00:00:00 2001 From: Alexander Smorkalov Date: Mon, 15 Jun 2026 12:32:11 +0300 Subject: [PATCH] Fixed new objdetect warnings on Windows. --- modules/objdetect/src/aruco/aruco_dictionary.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/objdetect/src/aruco/aruco_dictionary.cpp b/modules/objdetect/src/aruco/aruco_dictionary.cpp index 8de140b7e5..bd2ec20442 100644 --- a/modules/objdetect/src/aruco/aruco_dictionary.cpp +++ b/modules/objdetect/src/aruco/aruco_dictionary.cpp @@ -80,7 +80,8 @@ bool Dictionary::identify(const Mat &onlyCellPixelRatio, CV_OUT int &idx, CV_OUT const int s = (markerSize * markerSize + 8 - 1) / 8; AutoBuffer temp(4 * s); uint8_t* not0 = temp.data(), * not1 = not0 + s; - int not0Byte = 0, not1Byte = 0, currentByte = 0, currentBit = 0; + uint8_t not0Byte = 0, not1Byte = 0; + int currentByte = 0, currentBit = 0; for(int j = 0; j < markerSize; j++) { const float* cellPixelRatioRow = onlyCellPixelRatio.ptr(j); for(int i = 0; i < markerSize; i++) {