From 0f0fd75125bad97bafb3661d17a21049c75772fc Mon Sep 17 00:00:00 2001 From: DRC Date: Tue, 7 Feb 2012 23:27:14 +0000 Subject: [PATCH] Compiler warnings git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/branches/1.1.x@784 632fc199-4ca6-4c93-a231-07263d6284db --- jcdctmgr.c | 2 +- simd/jsimd_i386.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/jcdctmgr.c b/jcdctmgr.c index 711f9da..12f8872 100644 --- a/jcdctmgr.c +++ b/jcdctmgr.c @@ -182,7 +182,7 @@ compute_reciprocal (UINT16 divisor, DCTELEM * dtbl) /* fq will be one bit too large to fit in DCTELEM, so adjust */ fq >>= 1; r--; - } else if (fr <= (divisor / 2)) { /* fractional part is < 0.5 */ + } else if (fr <= (divisor / 2U)) { /* fractional part is < 0.5 */ c++; } else { /* fractional part is > 0.5 */ fq++; diff --git a/simd/jsimd_i386.c b/simd/jsimd_i386.c index d9bb774..021bcb2 100644 --- a/simd/jsimd_i386.c +++ b/simd/jsimd_i386.c @@ -41,7 +41,7 @@ init_simd (void) { char *env = NULL; - if (simd_support != ~0) + if (simd_support != ~0U) return; simd_support = jpeg_simd_cpu_support(); -- 2.40.0