Compiler warnings

git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/branches/1.2.x@758 632fc199-4ca6-4c93-a231-07263d6284db
This commit is contained in:
DRC
2012-01-31 03:39:23 +00:00
parent e006f5c427
commit d65d99a9f5
3 changed files with 3 additions and 3 deletions

View File

@@ -182,7 +182,7 @@ compute_reciprocal (UINT16 divisor, DCTELEM * dtbl)
/* fq will be one bit too large to fit in DCTELEM, so adjust */ /* fq will be one bit too large to fit in DCTELEM, so adjust */
fq >>= 1; fq >>= 1;
r--; r--;
} else if (fr <= (divisor / 2)) { /* fractional part is < 0.5 */ } else if (fr <= (divisor / 2U)) { /* fractional part is < 0.5 */
c++; c++;
} else { /* fractional part is > 0.5 */ } else { /* fractional part is > 0.5 */
fq++; fq++;

View File

@@ -104,7 +104,7 @@ init_simd (void)
int bufsize = 1024; /* an initial guess for the line buffer size limit */ int bufsize = 1024; /* an initial guess for the line buffer size limit */
#endif #endif
if (simd_support != ~0) if (simd_support != ~0U)
return; return;
simd_support = 0; simd_support = 0;

View File

@@ -41,7 +41,7 @@ init_simd (void)
{ {
char *env = NULL; char *env = NULL;
if (simd_support != ~0) if (simd_support != ~0U)
return; return;
simd_support = jpeg_simd_cpu_support(); simd_support = jpeg_simd_cpu_support();