diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2016-02-06 13:32:44 -0800 |
---|---|---|
committer | Ulrich Sibiller <uli42@gmx.de> | 2016-10-19 21:40:30 +0200 |
commit | 8d8d5cfd8c4f3d25c85d6ed60298f3aa917651eb (patch) | |
tree | cd3162f71013a76ad3d655ea91ef5dfa92bbbab2 /nx-X11/lib/X11/Lab.c | |
parent | 327d2cc6047683abb36cab25a90633c7b8d9b036 (diff) | |
download | nx-libs-8d8d5cfd8c4f3d25c85d6ed60298f3aa917651eb.tar.gz nx-libs-8d8d5cfd8c4f3d25c85d6ed60298f3aa917651eb.tar.bz2 nx-libs-8d8d5cfd8c4f3d25c85d6ed60298f3aa917651eb.zip |
xcms: use unsigned indexes when looping through unsigned values
Clears many gcc warnings of the form:
uvY.c: In function ‘XcmsCIEuvYToCIEXYZ’:
uvY.c:263:19: warning: comparison between signed and unsigned integer
expressions [-Wsign-compare]
for (i = 0; i < nColors; i++, pColor++) {
^
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Backported-to-NX-by: Ulrich Sibiller <uli42@gmx.de>
Diffstat (limited to 'nx-X11/lib/X11/Lab.c')
-rw-r--r-- | nx-X11/lib/X11/Lab.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nx-X11/lib/X11/Lab.c b/nx-X11/lib/X11/Lab.c index 642886ec2..6f7075643 100644 --- a/nx-X11/lib/X11/Lab.c +++ b/nx-X11/lib/X11/Lab.c @@ -251,7 +251,7 @@ XcmsCIELabToCIEXYZ( XcmsCIEXYZ XYZ_return; XcmsFloat tmpFloat, tmpL; XcmsColor whitePt; - int i; + unsigned int i; XcmsColor *pColor = pColors_in_out; /* @@ -354,7 +354,7 @@ XcmsCIEXYZToCIELab( XcmsCIELab Lab_return; XcmsFloat fX_Xn, fY_Yn, fZ_Zn; XcmsColor whitePt; - int i; + unsigned int i; XcmsColor *pColor = pColors_in_out; /* |