summaryrefslogtreecommitdiff
path: root/driver_rtcm3.c
diff options
context:
space:
mode:
authorMichael Tatarinov <kukabu@gmail.com>2013-02-18 11:42:56 +0400
committerEric S. Raymond <esr@thyrsus.com>2013-02-18 02:45:09 -0500
commitb5c2841005816d1521064daa4ea03c1c8ce7c298 (patch)
tree243cea206bb86369afd61e0315899e7abb8b8174 /driver_rtcm3.c
parent5ec399ba397aced9d324c06a8156314dc05b2a6e (diff)
downloadgpsd-b5c2841005816d1521064daa4ea03c1c8ce7c298.tar.gz
The signed/unsigned char fix.
All regression tests pass on Raspbian “wheezy”. Signed-off-by: Eric S. Raymond <esr@thyrsus.com>
Diffstat (limited to 'driver_rtcm3.c')
-rw-r--r--driver_rtcm3.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/driver_rtcm3.c b/driver_rtcm3.c
index 93e955d8..90fbdae5 100644
--- a/driver_rtcm3.c
+++ b/driver_rtcm3.c
@@ -74,8 +74,8 @@ void rtcm3_unpack( /*@out@*/ struct rtcm3_t *rtcm, char *buf)
signed long temp;
/*@ -evalorder -sefparams -mayaliasunique @*/
-#define ugrab(width) (bitcount += width, ubits(buf, bitcount-width, width, false))
-#define sgrab(width) (bitcount += width, sbits(buf, bitcount-width, width, false))
+#define ugrab(width) (bitcount += width, ubits((unsigned char *)buf, bitcount-width, width, false))
+#define sgrab(width) (bitcount += width, sbits((signed char *)buf, bitcount-width, width, false))
#define GPS_PSEUDORANGE(fld, len) \
{temp = (unsigned long)ugrab(len); \
if (temp == GPS_INVALID_PSEUDORANGE) \