From ed39979d14308c541e7e588b9754003dfe0968c4 Mon Sep 17 00:00:00 2001 From: Yuval Adam Date: Mon, 28 Jan 2013 00:11:58 +0200 Subject: Don't need an unsigned int here --- gascop.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.3.1