From b5c2841005816d1521064daa4ea03c1c8ce7c298 Mon Sep 17 00:00:00 2001 From: Michael Tatarinov Date: Mon, 18 Feb 2013 11:42:56 +0400 Subject: The signed/unsigned char fix. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit All regression tests pass on Raspbian “wheezy”. Signed-off-by: Eric S. Raymond --- driver_rtcm3.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'driver_rtcm3.c') 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) \ -- cgit v1.2.1