summaryrefslogtreecommitdiff
path: root/navit/attr.c
diff options
context:
space:
mode:
authormartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>2009-02-11 12:27:20 +0000
committermartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>2009-02-11 12:27:20 +0000
commit8d59d59503b65fb0157182a5cfe0ff1982067df4 (patch)
tree1d3047f025df072a74c2e2b9f491a4d78d5e35f3 /navit/attr.c
parent4d0129dbcfaffc5cd7748145b1ae165b7e136870 (diff)
downloadnavit-8d59d59503b65fb0157182a5cfe0ff1982067df4.tar.gz
Fix:Tools:Cleanup of osm2navit
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@2036 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'navit/attr.c')
-rw-r--r--navit/attr.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/navit/attr.c b/navit/attr.c
index 687ad9d2d..f8f7bb71e 100644
--- a/navit/attr.c
+++ b/navit/attr.c
@@ -308,6 +308,8 @@ attr_data_size(struct attr *attr)
return sizeof(void *);
if (attr->type >= attr_type_int64_begin && attr->type <= attr_type_int64_end)
return sizeof(*attr->u.num64);
+ if (attr->type == attr_order)
+ return sizeof(attr->u.range);
dbg(0,"size for %s unknown\n", attr_to_name(attr->type));
return 0;
}
@@ -317,6 +319,8 @@ attr_data_get(struct attr *attr)
{
if (attr->type >= attr_type_int_begin && attr->type <= attr_type_int_end)
return &attr->u.num;
+ if (attr->type == attr_order)
+ return &attr->u.range;
return attr->u.data;
}