@@ -278,6 +278,7 @@ void tiff_read_multiplane(TIFF *t, float scale, ctl::dpx::fb<float> * pixels) {
278278 uint32_t row;
279279 uint32_t orientation_offset;
280280 uint16_t d;
281+ uint32_t e;
281282
282283 TIFFGetFieldDefaulted (t, TIFFTAG_IMAGEWIDTH, &w);
283284 TIFFGetFieldDefaulted (t, TIFFTAG_IMAGELENGTH, &h);
@@ -300,8 +301,8 @@ void tiff_read_multiplane(TIFF *t, float scale, ctl::dpx::fb<float> * pixels) {
300301 for (row=0 ; row<4 ; row++) {
301302 if (row<samples_per_pixel) {
302303 scanline_buffer_uint8[row]=(uint8_t *)alloca (scanline_size);
303- for (d =0 ; d <w; d ++) {
304- scanline_buffer_uint8[row][d ]= row==3 ? 255 : 0 ;
304+ for (e =0 ; e <w; e ++) {
305+ scanline_buffer_uint8[row][e ]= row==3 ? 255 : 0 ;
305306 }
306307 } else {
307308 scanline_buffer_uint8[row]=NULL ;
@@ -330,8 +331,8 @@ void tiff_read_multiplane(TIFF *t, float scale, ctl::dpx::fb<float> * pixels) {
330331 for (row=0 ; row<4 ; row++) {
331332 if (row<samples_per_pixel) {
332333 scanline_buffer_uint16[row]=(uint16_t *)alloca (scanline_size);
333- for (d =0 ; d <w; d ++) {
334- scanline_buffer_uint16[row][d ]= row==3 ? 65535 : 0 ;
334+ for (e =0 ; e <w; e ++) {
335+ scanline_buffer_uint16[row][e ]= row==3 ? 65535 : 0 ;
335336 }
336337 } else {
337338 scanline_buffer_uint16[row]=NULL ;
@@ -358,8 +359,8 @@ void tiff_read_multiplane(TIFF *t, float scale, ctl::dpx::fb<float> * pixels) {
358359 for (row=0 ; row<4 ; row++) {
359360 if (row<samples_per_pixel) {
360361 scanline_buffer_float[row]=(float *)alloca (scanline_size);
361- for (d =0 ; d <w; d ++) {
362- scanline_buffer_float[row][d ]= row==3 ? 1.0 : 0.0 ;
362+ for (e =0 ; e <w; e ++) {
363+ scanline_buffer_float[row][e ]= row==3 ? 1.0 : 0.0 ;
363364 }
364365 } else {
365366 scanline_buffer_float[row]=NULL ;
0 commit comments