summaryrefslogtreecommitdiff
path: root/gps.h
diff options
context:
space:
mode:
authorGary E. Miller <gem@rellim.com>2016-04-20 15:59:44 -0700
committerGary E. Miller <gem@rellim.com>2016-04-20 15:59:44 -0700
commitde3e0a9746e15e1ca228815d81b2752f8371d8ea (patch)
tree6d7fc3da99319bd9fee29ffdf0432b9b37a901b7 /gps.h
parent65f2a7ee0d1b9fef9041e9380c9b9f593dbe22b6 (diff)
downloadgpsd-de3e0a9746e15e1ca228815d81b2752f8371d8ea.tar.gz
RTCM3 is unsigned byte, not chars.
This was causing problems in sign extension. On amd64/Gentoo sign was extended: (unsigned int)(char 0x80) became: 0xfffffff80 But on Pi2/Wheezy the same thing became: 0x80. The obvious fix is to make it unsigned, as god intended. All regression tests pass on pi2/wheezzy and amd64/gentoo.
Diffstat (limited to 'gps.h')
-rw-r--r--gps.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gps.h b/gps.h
index daccd116..b1378147 100644
--- a/gps.h
+++ b/gps.h
@@ -533,7 +533,7 @@ struct rtcm3_t {
char receiver[RTCM3_MAX_DESCRIPTOR+1]; /* Receiver string */
char firmware[RTCM3_MAX_DESCRIPTOR+1]; /* Firmware string */
} rtcm3_1033;
- char data[1024]; /* Max RTCM3 msg length is 1023 bytes */
+ unsigned char data[1024]; /* Max RTCM3 msg length is 1023 bytes */
} rtcmtypes;
};