summaryrefslogtreecommitdiff
path: root/navit/attr.c
diff options
context:
space:
mode:
authorsleske <sleske@ffa7fe5e-494d-0410-b361-a75ebd5db220>2013-06-30 23:07:15 +0000
committersleske <sleske@ffa7fe5e-494d-0410-b361-a75ebd5db220>2013-06-30 23:07:15 +0000
commit7c7753887db05491b0a5490c596eda4dfec88d36 (patch)
tree0f73cffc697322e02f07a393e6195d8ccad80f84 /navit/attr.c
parent3c2bc532366491895273f23ac3fea1cee9a127e1 (diff)
downloadnavit-7c7753887db05491b0a5490c596eda4dfec88d36.tar.gz
Refactor:core:Fix warnings, remove dead code.
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@5543 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'navit/attr.c')
-rw-r--r--navit/attr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/navit/attr.c b/navit/attr.c
index dccc04c2d..399eddceb 100644
--- a/navit/attr.c
+++ b/navit/attr.c
@@ -191,13 +191,13 @@ attr_new_from_text(const char *name, const char *value)
Relative values are from 0x40000001 - 0x80000000, with 0x60000000 being 0 */
if (strchr(value, '%')) {
if ((ret->u.num > 0x20000000) || (ret->u.num < -0x1FFFFFFF)) {
- dbg(0, "Relative possibly-relative attribute with invalid value %i\n", ret->u.num);
+ dbg(0, "Relative possibly-relative attribute with invalid value %li\n", ret->u.num);
}
ret->u.num += 0x60000000;
} else {
if ((ret->u.num > 0x40000000) || (ret->u.num < -0x40000000)) {
- dbg(0, "Non-relative possibly-relative attribute with invalid value %i\n", ret->u.num);
+ dbg(0, "Non-relative possibly-relative attribute with invalid value %li\n", ret->u.num);
}
}
} else if (attr >= attr_type_boolean_begin) { // also check for yes and no