X-Git-Url: http://pilppa.org/gitweb/?a=blobdiff_plain;f=lib%2Fint_sqrt.c;h=fd355a99327cdeab8333781991ea3ecd59997ca4;hb=4d3fac08718b49fc256bdb447a479d089ca97b78;hp=a5d2cdc5684cfdf0d2834692c3abc6024da515de;hpb=1da177e4c3f41524e886b7f1b8a0c1fc7321cac2;p=linux-2.6-omap-h63xx.git diff --git a/lib/int_sqrt.c b/lib/int_sqrt.c index a5d2cdc5684..fd355a99327 100644 --- a/lib/int_sqrt.c +++ b/lib/int_sqrt.c @@ -15,7 +15,7 @@ unsigned long int_sqrt(unsigned long x) op = x; res = 0; - one = 1 << 30; + one = 1UL << (BITS_PER_LONG - 2); while (one > op) one >>= 2;