On Thursday 23 July 2015 09:21:13 Jérôme Godbout wrote: > I admit the int to unsigned > int is also a problem to become, -1 lead to 2^32 - 1, we can only do that > if you known negative number aren't used and should do a static_cast > or reinterpret_cast according to the situation and handle the conversion > properly.
I've fixed most uses of -1 on unsigned types, as ICC complains about that too. The fix is simple: write ~0 instead of -1. -- Thiago Macieira - thiago.macieira (AT) intel.com Software Architect - Intel Open Source Technology Center _______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest