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

Commit 2195f44

Browse files
author
Marc
committed
Don't need flog of negative integers
1 parent 2fef5a4 commit 2195f44

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/2048.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ void rand_block()
201201
}
202202

203203
/* quick floor log2(n) */
204-
int flog2(int n)
204+
int flog2(unsigned int n)
205205
{
206206
int k = 0;
207207
while (n)

0 commit comments

Comments
 (0)