X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-workers-bounces using -f From: Martin Str|mberg Message-Id: <200203031419.g23EJBH06559@mother.ludd.luth.se> Subject: Re: libm signed/unsigned warnings To: djgpp-workers AT delorie DOT com Date: Sun, 3 Mar 2002 15:19:10 +0100 (MET) In-Reply-To: from "Eli Zaretskii" at Mar 03, 2002 01:31:13 PM X-Mailer: ELM [version 2.5 PL2] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Reply-To: djgpp-workers AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp-workers AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk How about this: Index: djgpp//src/libm/math/e_pow.c =================================================================== RCS file: /cvs/djgpp/djgpp/src/libm/math/e_pow.c,v retrieving revision 1.1 diff -p -u -r1.1 e_pow.c --- djgpp//src/libm/math/e_pow.c 1998/10/06 10:04:10 1.1 +++ djgpp//src/libm/math/e_pow.c 2002/03/03 14:17:46 @@ -109,7 +109,7 @@ ivln2_l = 1.92596299112661746887e-08; double y_1,t1,t2,r,s,t,u,v,w; __int32_t i,j,k,yisint,n; __int32_t hx,hy,ix,iy; - __uint32_t lx,ly; + __uint32_t lx,ly,ju; EXTRACT_WORDS(hx,lx,x); EXTRACT_WORDS(hy,ly,y); @@ -134,8 +134,8 @@ ivln2_l = 1.92596299112661746887e-08; else if(iy>=0x3ff00000) { k = (iy>>20)-0x3ff; /* exponent */ if(k>20) { - j = ly>>(52-k); - if((j<<(52-k))==ly) yisint = 2-(j&1); + ju = ly>>(52-k); + if((ju<<(52-k))==ly) yisint = 2-(ju&1); } else if(ly==0) { j = iy>>(20-k); if((j<<(20-k))==iy) yisint = 2-(j&1); Right, MartinS