summaryrefslogtreecommitdiff
path: root/libtiff/tif_luv.c
diff options
context:
space:
mode:
authorwarmerda <warmerda>2001-02-17 03:07:54 +0000
committerwarmerda <warmerda>2001-02-17 03:07:54 +0000
commitc93cd694c3a16af54cff277d970f75f6a56d9704 (patch)
tree0766ae70d6583476a280ed2e491b8fcc0e55a35e /libtiff/tif_luv.c
parent44af1d7231780d2cb744328935b85a558633d008 (diff)
downloadlibtiff-c93cd694c3a16af54cff277d970f75f6a56d9704.tar.gz
avoid warning on vc++
Diffstat (limited to 'libtiff/tif_luv.c')
-rw-r--r--libtiff/tif_luv.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libtiff/tif_luv.c b/libtiff/tif_luv.c
index df9b6bf4..1d84e196 100644
--- a/libtiff/tif_luv.c
+++ b/libtiff/tif_luv.c
@@ -773,7 +773,8 @@ oog_encode(double u, double v) /* encode out-of-gamut chroma */
ustep = 1;
for (ui = uv_row[vi].nus-1; ui >= 0; ui -= ustep) {
ua = uv_row[vi].ustart + (ui+.5)*UV_SQSIZ;
- i = ang = uv2ang(ua, va);
+ ang = uv2ang(ua, va);
+ i = (int) ang;
epsa = fabs(ang - (i+.5));
if (epsa < eps[i]) {
oog_table[i] = uv_row[vi].ncum + ui;
@@ -799,7 +800,7 @@ oog_encode(double u, double v) /* encode out-of-gamut chroma */
}
initialized = 1;
}
- i = uv2ang(u, v); /* look up hue angle */
+ i = (int) uv2ang(u, v); /* look up hue angle */
return (oog_table[i]);
}