Skip to content
This repository has been archived by the owner on May 18, 2024. It is now read-only.

Commit

Permalink
Don't need flog of negative integers
Browse files Browse the repository at this point in the history
  • Loading branch information
Marc committed Dec 1, 2014
1 parent 2fef5a4 commit 2195f44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/2048.c
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ void rand_block()
}

/* quick floor log2(n) */
int flog2(int n)
int flog2(unsigned int n)
{
int k = 0;
while (n)
Expand Down

0 comments on commit 2195f44

Please sign in to comment.