diff options
author | Thiago Macieira <thiago.macieira@intel.com> | 2015-02-14 21:45:32 -0800 |
---|---|---|
committer | Thiago Macieira <thiago.macieira@intel.com> | 2015-02-17 00:42:00 +0000 |
commit | 738e9b185c72b6814bc3e4ea2a7a23adce326a73 (patch) | |
tree | 5af004d1e11d05f1429406fc43f98fa9ed9420ce /src/corelib/global | |
parent | aa855afa44bbbdd17125b88f0ec277b0b3f510c8 (diff) |
Fix Intel compiler warning about change of sign
The variable c is unsigned, so the second operand is unsigned,
constraing the -1 to be unsigned too and causing a change of sign.
Instead, cast the middle operations to int, as that's the return value
anyway.
error #68: integer conversion resulted in a change of sign
Change-Id: I1a800c709d3543699131ffff13c2fd79f14f8b43
Reviewed-by: Olivier Goffart (Woboq GmbH) <ogoffart@woboq.com>
Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
Diffstat (limited to 'src/corelib/global')
0 files changed, 0 insertions, 0 deletions