Skip to content

Commit 757db57

Browse files
committed
update
1 parent c992dc3 commit 757db57

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

0x14-bit_manipulation/2-get_bit.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ int get_bit(unsigned long int n, unsigned int index)
1111
{
1212
unsigned int i = 0;
1313

14-
for (; i < index, (n != 1 || n != 0) ; i++)
14+
for (; i < index && (n != 1 || n != 0); i++)
1515
{
1616
n >>= 1;
1717
if (n == 0 && i)

0 commit comments

Comments
 (0)