Jeroen Demeyer on Wed, 16 Sep 2009 09:42:27 +0200 |
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
Re: gcc warnings |
A patch for a new warning which popped up in ZX.c
Index: src/basemath/ZX.c =================================================================== --- src/basemath/ZX.c (revision 11920) +++ src/basemath/ZX.c (working copy) @@ -476,7 +476,7 @@ vx = ZX_val(x); nx-=vx; if (nx==1) return ZX1_sqr(x); ex = ZX_expi(x); - if (nx-2<sizeof(low) && low[nx-2]<=ex && ex<=high[nx-2]) + if (nx-2 < (long)sizeof(low) && low[nx-2]<=ex && ex<=high[nx-2]) z = ZX_sqrspec_basecase(x+2+vx, nx, 2*vx); else z = ZX_sqrspec_sqri(x+2+vx, nx, ex, 2*vx);