summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2009-07-17 21:33:18 -0700
committerKeith Packard <keithp@keithp.com>2009-07-17 21:33:18 -0700
commitab40d224b39ba6d29c4056e2d2c365e1eb3d3793 (patch)
treedf3769882a28e83aed55b44c819486800dad5b30 /src
parentd6749bf24792bb41ca700cf4b8e5e1ac1a63cbf0 (diff)
Use uint8_t for comparisons to avoid int conversions
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src')
-rw-r--r--src/ao_gps.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ao_gps.c b/src/ao_gps.c
index 32a44fb1..78957cb3 100644
--- a/src/ao_gps.c
+++ b/src/ao_gps.c
@@ -289,9 +289,9 @@ ao_gps(void) __reentrant
}
for (;;) {
/* Locate the begining of the next record */
- while (ao_sirf_byte() != 0xa0)
+ while (ao_sirf_byte() != (uint8_t) 0xa0)
;
- if (ao_sirf_byte() != 0xa2)
+ if (ao_sirf_byte() != (uint8_t) 0xa2)
continue;
/* Length */
@@ -321,9 +321,9 @@ ao_gps(void) __reentrant
cksum |= ao_sirf_byte();
if (ao_sirf_cksum != cksum)
continue;
- if (ao_sirf_byte() != 0xb0)
+ if (ao_sirf_byte() != (uint8_t) 0xb0)
continue;
- if (ao_sirf_byte() != 0xb3)
+ if (ao_sirf_byte() != (uint8_t) 0xb3)
continue;
switch (i) {