Fixed.
Actually, the libgmp mpz_popcount returns MAXUINT32 (as unsigned long int), so the answer was just not auto-converted to signed. I've added a test for that now, so the answer will stay compatible.
/ Mirar
Previous text:
2003-01-26 23:33: Subject: INT_TYPE = INT64
Popcount tells how many nonzero bits the number contains i twos complement. Since negative numbers contain an infinite number of nonzerobits, popcount() is not defined for negative numbers and simply return -1.
/ Marcus Comstedt (ACROSS) (Hail Ilpalazzo!)