mirror of
https://git.code.sf.net/p/libpng/code.git
synced 2025-07-10 18:04:09 +02:00
[libpng17] Fixed ICC compiler warning in tools/png-fix-itxt.c
This commit is contained in:
committed by
Glenn Randers-Pehrson
parent
c233ec8743
commit
a08ac031fc
@@ -2,7 +2,7 @@
|
|||||||
/* png-fix-itxt version 1.0.0
|
/* png-fix-itxt version 1.0.0
|
||||||
*
|
*
|
||||||
* Copyright 2013 Glenn Randers-Pehrson
|
* Copyright 2013 Glenn Randers-Pehrson
|
||||||
* Last changed in libpng 1.6.3 [(PENDING RELEASE)]
|
* Last changed in libpng 1.6.3 [%RDATE%]
|
||||||
*
|
*
|
||||||
* This code is released under the libpng license.
|
* This code is released under the libpng license.
|
||||||
* For conditions of distribution and use, see the disclaimer
|
* For conditions of distribution and use, see the disclaimer
|
||||||
@@ -109,10 +109,10 @@ for (;;)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Update length bytes */
|
/* Update length bytes */
|
||||||
buf[0] = (length << 24) & 0xff;
|
buf[0] = (unsigned char)((length << 24) & 0xff);
|
||||||
buf[1] = (length << 16) & 0xff;
|
buf[1] = (unsigned char)((length << 16) & 0xff);
|
||||||
buf[2] = (length << 8) & 0xff;
|
buf[2] = (unsigned char)((length << 8) & 0xff);
|
||||||
buf[3] = (length ) & 0xff;
|
buf[3] = (unsigned char)((length ) & 0xff);
|
||||||
|
|
||||||
/* Write the fixed iTXt chunk (length, name, data, crc) */
|
/* Write the fixed iTXt chunk (length, name, data, crc) */
|
||||||
for (i=0; i<length+12; i++)
|
for (i=0; i<length+12; i++)
|
||||||
|
|||||||
Reference in New Issue
Block a user