only check for positive powers of 2

This commit is contained in:
ceriel 1991-10-04 10:37:06 +00:00
parent e07baf28c1
commit bbe1e3ffdc

View file

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