summaryrefslogtreecommitdiff
path: root/crc24q.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2008-07-10 11:49:38 +0000
committerEric S. Raymond <esr@thyrsus.com>2008-07-10 11:49:38 +0000
commitd690b6efd5db07e1d9f008bdba4171dababd92bb (patch)
tree7e37cee349e35cca228d8cabfb1c0bb1b21cd0f9 /crc24q.c
parent9d72d4e8dd0a9286da38e0a4dfae4074273cf3df (diff)
downloadgpsd-d690b6efd5db07e1d9f008bdba4171dababd92bb.tar.gz
More splint cleanups.
Diffstat (limited to 'crc24q.c')
-rw-r--r--crc24q.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/crc24q.c b/crc24q.c
index 944b35ab..a429de9d 100644
--- a/crc24q.c
+++ b/crc24q.c
@@ -151,9 +151,9 @@ unsigned crc24q_hash(unsigned char *data, int len)
return crc;
}
-#define LO(x) ((x) & 0xff)
-#define MID(x) (((x) >> 8) & 0xff)
-#define HI(x) (((x) >> 16) & 0xff)
+#define LO(x) (unsigned char)((x) & 0xff)
+#define MID(x) (unsigned char)(((x) >> 8) & 0xff)
+#define HI(x) (unsigned char)(((x) >> 16) & 0xff)
void crc24q_sign(unsigned char *data, int len)
{