From b447c7a61aae763f5f8a4b203efcd7a3193aa663 Mon Sep 17 00:00:00 2001 From: Dan Buch Date: Sat, 18 Jun 2011 19:39:37 -0400 Subject: [PATCH] more futzing with whitespace in bit counter --- gowrikumar/src/07-countbits.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gowrikumar/src/07-countbits.c b/gowrikumar/src/07-countbits.c index 73a72dc..aad54a4 100644 --- a/gowrikumar/src/07-countbits.c +++ b/gowrikumar/src/07-countbits.c @@ -19,7 +19,7 @@ int get_bit_count(unsigned int x) int i; int shift; /* Number of positions to shift to right*/ for (i = 0, shift = 1; i < 5; i++, shift *= 2) { - x = (x & mask[i])+ ((x >> shift) & mask[i]); + x = (x & mask[i]) + ((x >> shift) & mask[i]); } return x; }