diff options
author | Chris Kuethe <chris.kuethe@gmail.com> | 2006-09-20 23:18:08 +0000 |
---|---|---|
committer | Chris Kuethe <chris.kuethe@gmail.com> | 2006-09-20 23:18:08 +0000 |
commit | 1d71ee521eacbf778810a5fae87c4bdc908e666b (patch) | |
tree | b38876b580a17ae9ae7b8e787177cd67b8ea0706 /gps.h | |
parent | dfc9472ec514836d810b9f87136719d97c5172f7 (diff) | |
download | gpsd-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.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 */ |