projects
/
silc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9335523
)
Take the sign for minutes and second from degrees sign
silc.trunk.merged.silc.1.0.branch.2
author
Pekka Riikonen
<priikone@silcnet.org>
Sun, 31 Aug 2003 17:12:52 +0000
(17:12 +0000)
committer
Pekka Riikonen
<priikone@silcnet.org>
Sun, 31 Aug 2003 17:12:52 +0000
(17:12 +0000)
apps/silcmap/silcmap_bitmap.c
patch
|
blob
|
history
diff --git
a/apps/silcmap/silcmap_bitmap.c
b/apps/silcmap/silcmap_bitmap.c
index 1df1a35850d5c2b5125e8c6b8ec00aca565ebdf7..cc2776f14de57e82f41a4afcc5a683f5369923a4 100644
(file)
--- a/
apps/silcmap/silcmap_bitmap.c
+++ b/
apps/silcmap/silcmap_bitmap.c
@@
-376,6
+376,11
@@
double silc_map_parse_pos(char *pos)
return 0;
}
+ if (d < 0) {
+ m = (m < 0 ? m : -m);
+ s = (s < 0 ? s : -s);
+ }
+
return ((d < 0 ? -1 : d > 0 ? 1 : 0) *
abs(d) + (m / 60) + (s / 3600));
}