summaryrefslogtreecommitdiff
path: root/gascop.c
diff options
context:
space:
mode:
authorYuval Adam <yuv.adm@gmail.com>2013-01-28 00:11:58 +0200
committerYuval Adam <yuv.adm@gmail.com>2013-01-28 00:11:58 +0200
commited39979d14308c541e7e588b9754003dfe0968c4 (patch)
tree4e3a13d4c88e661b0ec4ec707931b41bac176e3f /gascop.c
parent1b8a61dca46d3c5b1d2bc6e0d38377a86bfd3a3f (diff)
Don't need an unsigned int here
Diffstat (limited to 'gascop.c')
-rw-r--r--gascop.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gascop.c b/gascop.c
index 435b781..6293b47 100644
--- a/gascop.c
+++ b/gascop.c
@@ -70,7 +70,7 @@ void pocsag_msg_init(struct pocsag_msg *msg) {
}
int hammingWeight(uint32_t n) {
- unsigned int c;
+ int c;
for (c = 0; n; c++)
n &= n - 1;
return c;