projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
altos/telelco-v3.0: Fix up search UI
[fw/altos]
/
src
/
kernel
/
ao_distance.c
diff --git
a/src/kernel/ao_distance.c
b/src/kernel/ao_distance.c
index 481a53c11c5bbdc14b8392895d221d90d7204368..d85f20f2c85ed36e111c0300a0bdd9f6199ef800 100644
(file)
--- a/
src/kernel/ao_distance.c
+++ b/
src/kernel/ao_distance.c
@@
-101,7
+101,7
@@
ao_lon_dist(int32_t lon_a, int32_t lon_b)
/* check if it's shorter to go the other way around */
if ((lon_a >> 1) < (lon_b >> 1) - (1800000000 >> 1))
/* check if it's shorter to go the other way around */
if ((lon_a >> 1) < (lon_b >> 1) - (1800000000 >> 1))
- lon_a
+= 3600000000
;
+ lon_a
= (int32_t) ((uint32_t) lon_a + 3600000000UL)
;
lon_dist = ao_dist(lon_a, lon_b);
if (c) {
if (lon_dist & 0x7f800000)
lon_dist = ao_dist(lon_a, lon_b);
if (c) {
if (lon_dist & 0x7f800000)