<div dir="ltr">On that last line you're indexing a QList which takes an int for its argument.<div><br></div><div><a href="https://doc.qt.io/qt-5/qlist.html#operator-5b-5d">https://doc.qt.io/qt-5/qlist.html#operator-5b-5d</a>  <br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, May 3, 2019 at 9:44 AM Jason H <<a href="mailto:jhihn@gmx.com">jhihn@gmx.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Given the code below:<br>
QMap<uint, uint> reverseHistogram;<br>
...<br>
QList<uint> reverseKeys = reverseHistogram.keys();<br>
int foregroundIndex = reverseHistogram.size()-2;           // arg, QMap::size() returns signed<br>
uint foregroundPixels = reverseKeys[foregroundIndex];<br>
uint foregroundColor = reverseKeys[foregroundPixels];<br>
uint foregroundColor = reverseKeys[foregroundPixels]; //main.cpp:66:37: warning: implicit conversion changes signedness: 'uint' (aka 'unsigned int') to 'int'<br>
<br>
Where is the "signed" conversion happening?<br>
<br>
_______________________________________________<br>
Interest mailing list<br>
<a href="mailto:Interest@qt-project.org" target="_blank">Interest@qt-project.org</a><br>
<a href="https://lists.qt-project.org/listinfo/interest" rel="noreferrer" target="_blank">https://lists.qt-project.org/listinfo/interest</a><br>
</blockquote></div>