Skip to content

Commit

Permalink
Fix size_t / int conversion warnings in qmake
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
kkoehne committed Dec 2, 2021
1 parent 6b025f9 commit 69c38b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions qmake/generators/makefiledeps.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<int>(strlen(tag));
x += static_cast<int>(strlen(keyword));
ignore[interest] = true;
}
++interest;
Expand Down

0 comments on commit 69c38b4

Please sign in to comment.