From 69c38b4fd02ea00fee0d2e1d4888d2ed759a419d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kai=20K=C3=B6hne?= Date: Tue, 30 Nov 2021 11:30:36 +0100 Subject: Fix size_t / int conversion warnings in qmake Fixes qtbase\qmake\generators\makefiledeps.cpp(985): warning C4267: '+=': conversion from 'size_t' to 'int', possible loss of data qtbase\qmake\generators\makefiledeps.cpp(986): warning C4267: '+=': conversion from 'size_t' to 'int', possible loss of data Pick-to: 6.2 Change-Id: I7c6b4f36dc383db420c10d674666d58dbf29d2dd Reviewed-by: Joerg Bornemann --- qmake/generators/makefiledeps.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qmake/generators/makefiledeps.cpp b/qmake/generators/makefiledeps.cpp index 81bf6ac744..b5a404de32 100644 --- a/qmake/generators/makefiledeps.cpp +++ b/qmake/generators/makefiledeps.cpp @@ -982,8 +982,8 @@ bool QMakeSourceFileInfo::findMocs(SourceFile *file) debug_msg(2, "Mocgen: %s:%d Found \"q%s%s\"", file->file.real().toLatin1().constData(), line_count, tag, keyword); - x += strlen(tag); - x += strlen(keyword); + x += static_cast(strlen(tag)); + x += static_cast(strlen(keyword)); ignore[interest] = true; } ++interest; -- cgit v1.2.1