Skip to content

Commit

Permalink
gmpints: fix Log2Int regression
Browse files Browse the repository at this point in the history
  • Loading branch information
fingolfin committed Jan 11, 2017
1 parent 814ec4d commit 34e30fb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/gmpints.c
Original file line number Diff line number Diff line change
Expand Up @@ -685,6 +685,7 @@ static Int CLog2UInt(UInt a)

Int CLog2Int(Int a)
{
if (a == 0) return -1;
if (a < 0) a = -a;
return CLog2UInt(a);
}
Expand Down

0 comments on commit 34e30fb

Please sign in to comment.