summaryrefslogtreecommitdiff
path: root/gps.h
diff options
context:
space:
mode:
authorChris Kuethe <chris.kuethe@gmail.com>2006-09-20 23:18:08 +0000
committerChris Kuethe <chris.kuethe@gmail.com>2006-09-20 23:18:08 +0000
commit1d71ee521eacbf778810a5fae87c4bdc908e666b (patch)
treeb38876b580a17ae9ae7b8e787177cd67b8ea0706 /gps.h
parentdfc9472ec514836d810b9f87136719d97c5172f7 (diff)
downloadgpsd-1d71ee521eacbf778810a5fae87c4bdc908e666b.tar.gz
Type length meditations.
int is not supposed to be longer than a long int, and a long int is supposed to be at least 32 bits. Unfortunately that doesn't tell us how many bits are in a long, so let's use a type where we do know. I don't suppose anyone is running this on a machine where (we haven't heard any complaints so far) sizeof(int) == 2 sizeof(int) == 8 && sizeof(long) == 8 RTCM regress is happy on ia32 and amd64.
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 210471e5..a7d4f798 100644
--- a/gps.h
+++ b/gps.h
@@ -92,7 +92,7 @@ struct gps_fix_t {
* used both in the GPS downlink protocol described in IS-GPS-200
* and in the format for DGPS corrections used in RTCM-104.
*/
-typedef /*@unsignedintegraltype@*/ unsigned int isgps30bits_t;
+typedef /*@unsignedintegraltype@*/ uint32_t isgps30bits_t;
struct rtcm_t {
/* header contents */