fix warnings

This commit is contained in:
Glenn Maynard
2004-06-14 20:31:23 +00:00
parent aac0dd6ecc
commit 8cbf965af0
+2 -2
View File
@@ -177,7 +177,7 @@ try { /* file reading may throw */
/* Expand 1- and 4-bits to 8-bits. */ /* Expand 1- and 4-bits to 8-bits. */
if( iFileBPP == 1 ) if( iFileBPP == 1 )
{ {
for( unsigned x = 0; x < (int) iWidth; ++x ) for( unsigned x = 0; x < iWidth; ++x )
{ {
int iByteNo = x >> 3; int iByteNo = x >> 3;
int iBitNo = 7-(x&7); int iBitNo = 7-(x&7);
@@ -187,7 +187,7 @@ try { /* file reading may throw */
} }
else if( iFileBPP == 4 ) else if( iFileBPP == 4 )
{ {
for( unsigned x = 0; x < (int) iWidth; ++x ) for( unsigned x = 0; x < iWidth; ++x )
{ {
if( (x & 1) == 0 ) if( (x & 1) == 0 )
pRow[x] = buf[x/2] & 0x0F; pRow[x] = buf[x/2] & 0x0F;