only check for positive powers of 2

This commit is contained in:
ceriel 1991-10-04 10:37:06 +00:00
parent b9713c4949
commit 1891f423b8

View File

@ -10,10 +10,8 @@ int n, *ref_exp;
int exp;
exp= 0;
if (n<0)
n= -n;
if (!n)
if (n <= 0)
return 0;
while (!(n % 2))