diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2009-09-10 06:29:48 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2009-09-10 06:29:48 +0000 |
commit | dbda81f426dc8cc2d2271b5efbe022d50a5f7732 (patch) | |
tree | 8af922e3bcdcd80a76587b49be05e9c9d84f88eb /bits.h | |
parent | ef5669b4f86d2e9c4f9f0bc12576040cbf511cea (diff) | |
download | gpsd-dbda81f426dc8cc2d2271b5efbe022d50a5f7732.tar.gz |
Continuing the splint cleanup.
Diffstat (limited to 'bits.h')
-rw-r--r-- | bits.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -50,8 +50,8 @@ union long_double { #define getlesl(buf, off) ((int32_t)(((u_int16_t)getleuw((buf), (off)+2) << 16) | (u_int16_t)getleuw((buf), (off)))) #define getleul(buf, off) ((u_int32_t)(((u_int16_t)getleuw((buf),(off)+2) << 16) | (u_int16_t)getleuw((buf), (off)))) -#define putleword(buf, off, w) do {putbyte(buf, (off)+1, (w) >> 8); putbyte(buf, (off), (w));} while (0) -#define putlelong(buf, off, l) do {putleword(buf, (off)+2, (l) >> 16); putleword(buf, (off), (l));} while (0) +#define putleword(buf, off, w) do {putbyte(buf, (off)+1, (uint)(w) >> 8); putbyte(buf, (off), (w));} while (0) +#define putlelong(buf, off, l) do {putleword(buf, (off)+2, (uint)(l) >> 16); putleword(buf, (off), (l));} while (0) #define getlesL(buf, off) ((int64_t)(((u_int64_t)getleul(buf, (off)+4) << 32) | getleul(buf, (off)))) #define getleuL(buf, off) ((u_int64_t)(((u_int64_t)getleul(buf, (off)+4) << 32) | getleul(buf, (off)))) |